Exam 10: Interfaces
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
Which of the following is an example of a functional interface, having a single abstract method?
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
A
Which of the following statements about the Object.clone method is NOT true?
Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
A
The methods of an ____ describe the actions to be taken when an event occurs.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
D
Which of the following is true about a default method in an interface declaration?
(Multiple Choice)
4.8/5
(38)
Consider the following code snippet:
Which of the following statements will complete this code?

(Multiple Choice)
5.0/5
(39)
Consider the following code snippet:
What is wrong with this code?

(Multiple Choice)
4.8/5
(28)
Which of the following statements about an inner class is true?
(Multiple Choice)
4.8/5
(33)
When you use a timer, you need to define a class that implements the ____ interface.
(Multiple Choice)
4.7/5
(40)
Consider the following code snippet:
Which statement would add the panel to the frame?

(Multiple Choice)
4.8/5
(33)
Consider the following class:
Which of the following method headers should be used to complete the ClickListener class?

(Multiple Choice)
4.8/5
(40)
In UML, a dotted arrow with a triangular tip denotes ____________________.
(Multiple Choice)
4.8/5
(42)
Consider the following class:
Which is the best statement to use to complete the compareTo() method?

(Multiple Choice)
4.9/5
(32)
Suppose you are writing an interface called Resizable, which includes one void method called resize that accepts no parameters. public interface Resizable
{
_______________________
}
Which of the following can be used to complete the interface declaration correctly?
(Multiple Choice)
4.8/5
(44)
Consider the following code snippet:
Which of the following statements is correct?

(Multiple Choice)
4.8/5
(37)
Which of the following statements about events and graphical user interface programs is true?
(Multiple Choice)
4.9/5
(44)
The ____ class in the javax.swing package generates a sequence of events, spaced apart at even time intervals.
(Multiple Choice)
4.8/5
(33)
Which of the following statements about a mock class is true?
(Multiple Choice)
5.0/5
(31)
Which of the following statements about an interface is true?
(Multiple Choice)
4.7/5
(30)
A class that implements an interface must provide an implementation for all ____ methods.
(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 100
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)