Exam 19: Java Never Ends

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

The programming statements used to accomplish a threads task should be included in the method:

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

C

What are Enterprise JavaBeans?

Free
(Essay)
4.9/5
(39)
Correct Answer:
Verified

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:
Verified

D

Java's Thread class is in the ____________ package.

(Multiple Choice)
4.9/5
(35)

Discuss the components of the JavaBean model.

(Essay)
4.7/5
(39)

____________ 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)

When a server executes the accept)method it:

(Multiple Choice)
4.7/5
(45)

What is a socket?

(Essay)
4.9/5
(35)

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)

What is a JavaBean?

(Essay)
4.8/5
(39)

A thread's start method invokes the thread's run method.

(True/False)
5.0/5
(35)

The JavaFX scene graph:

(Multiple Choice)
4.8/5
(32)

____________ 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)

SQL stands for Structured Query Language.

(True/False)
4.8/5
(40)

An InterruptedException is a checked exception.

(True/False)
4.8/5
(42)
Showing 1 - 20 of 26
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)