Exam 13: Interfaces and Inner Classes

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

Inner and outer classes do not have access to each other's private members.

(True/False)
4.9/5
(40)

An interface and all of its method headings are normally declared to be:

(Multiple Choice)
4.9/5
(32)

You can not derive an interface from a base interface.

(True/False)
4.8/5
(34)

An interface specifies the headings and definitions for methods that must be defined in any class that implements the interface.

(True/False)
4.9/5
(42)

What are the obligations of a class that implements a specific interface?

(Essay)
4.8/5
(39)

Java source code that contains a class with an inner class,when compiled,will produce a separate .class file for the inner class.

(True/False)
4.8/5
(40)

An interface is a type.

(True/False)
4.7/5
(31)

What are two advantages to using inner classes?

(Essay)
4.7/5
(35)

What is an anonymous class?

(Essay)
4.7/5
(38)

The Serializable interface is like all the other Java interfaces in that it contains defined constants and method headings.

(True/False)
4.8/5
(38)

The method that must be implemented in a class using the Comparable interface is:

(Multiple Choice)
4.7/5
(35)

When defining an inner class to be a helper class for an outer class,the inner classes access should be marked as:

(Multiple Choice)
4.8/5
(35)
Showing 21 - 32 of 32
close modal

Filters

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