Filters
Question type

Study Flashcards

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


A) public Object compareToObject other)
B) public Boolean compareToObject other)
C) public int compareToObject other)
D) none of the above

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

An interface is a type.

Correct Answer

verifed

verified

You can not derive an interface from a base interface.

Correct Answer

verifed

verified

What are two advantages to using inner classes?

Correct Answer

verifed

verified

There are two big advantages to using in...

View Answer

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

Correct Answer

verifed

verified

To implement an interface,a programmer m...

View Answer

What is an anonymous class?

Correct Answer

verifed

verified

An anonymous class is a class ...

View Answer

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


A) Public
B) Private
C) Protected
D) Package access

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

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


A) public
B) private
C) protected
D) package access

Correct Answer

verifed

verified

Showing 21 - 32 of 32

Related Exams

Show Answer