Exam 10: Interfaces

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

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

A

Which of the following statements about the Object.clone method is NOT true?

Free
(Multiple Choice)
4.9/5
(30)
Correct Answer:
Verified

A

The methods of an ____ describe the actions to be taken when an event occurs.

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

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: Consider the following code snippet:   Which of the following statements will complete this code? Which of the following statements will complete this code?

(Multiple Choice)
5.0/5
(39)

Consider the following code snippet: Consider the following code snippet:   What is wrong with this code? 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: Consider the following code snippet:   Which statement would add the panel to the frame? Which statement would add the panel to the frame?

(Multiple Choice)
4.8/5
(33)

Consider the following class: Consider the following class:   Which of the following method headers should be used to complete the ClickListener 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)

What does the MouseAdapter class provide?

(Multiple Choice)
4.8/5
(39)

Consider the following class: Consider the following class:   Which is the best statement to use to complete the compareTo() method? 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: Consider the following code snippet:   Which of the following statements is correct? 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
close modal

Filters

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