Exam 19: Java Never Ends
Exam 1: Getting Started45 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control44 Questions
Exam 4: Defining Classes I45 Questions
Exam 5: Defining Classes II46 Questions
Exam 6: Arrays46 Questions
Exam 7: Inheritance43 Questions
Exam 8: Polymorphism and Abstract Classes43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 11: Recursion44 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class32 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections,maps,and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends26 Questions
Exam 20: Applets25 Questions
Select questions type
The programming statements used to accomplish a threads task should be included in the method:
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
C
What are Enterprise JavaBeans?
Free
(Essay)
4.9/5
(39)
Correct Answer:
The Enterprise JavaBean framework extends the JavaBeans framework to more readily accommodate business applications.
The sleep method of the Thread class requires one formal parameter that represents the number of:
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
D
____________ means that an object has an identity that extends beyond one session.
(Multiple Choice)
4.8/5
(37)
What is an advantage of applying Java 8 lambda expressions to a Collection class?
(Multiple Choice)
4.8/5
(40)
The Java library that supports database connectivity is called:
(Multiple Choice)
4.9/5
(38)
The FXML file in a JavaFX application contains the code that controls what happens when GUI components are selected.
(True/False)
4.8/5
(36)
What method in the Thread class is responsible for pausing a thread for a specific amount of milliseconds?
(Multiple Choice)
4.9/5
(43)
____________ is an enhancement of simple accessor and mutator methods.
(Multiple Choice)
5.0/5
(41)
If your class implements Runnable then what method is invoked to start the thread?
(Multiple Choice)
4.9/5
(34)
Rewrite the following code to use a Lambda expression for the button action listener.
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
public class ButtonDemo3 extends JFrame
{
public ButtonDemo3 )
{
setSize250,100);
setDefaultCloseOperationJFrame.EXIT_ON_CLOSE);
setTitle"Button Demo");
Container contentPane = getContentPane );
contentPane.setBackgroundColor.BLUE);
contentPane.setLayoutnew FlowLayout ));
JButton goButton = new JButton"Green");
goButton.addActionListener
{ e } - > contentPane.setBackgroundColor.GREEN));
contentPane.addgoButton);
}
public static void mainString[] args)
{
ButtonDemo3 buttonGui = new ButtonDemo3 );
buttonGui.setVisibletrue);
}
}
(Essay)
4.8/5
(40)
Showing 1 - 20 of 26
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)