Exam 13: Interfaces and Inner Classes
Exam 1: Getting Started45 Questions
Exam 2: Console Input and Output29 Questions
Exam 3: Flow of Control44 Questions
Exam 4: Defining Classes I45 Questions
Exam 5: Defining Classes II46 Questions
Exam 6: Arrays46 Questions
Exam 7: Inheritance43 Questions
Exam 8: Polymorphism and Abstract Classes43 Questions
Exam 9: Exception Handling45 Questions
Exam 10: File IO46 Questions
Exam 11: Recursion44 Questions
Exam 12: Uml and Patterns22 Questions
Exam 13: Interfaces and Inner Classes32 Questions
Exam 14: Generics and the Arraylist Class32 Questions
Exam 15: Linked Data Structures43 Questions
Exam 16: Collections,maps,and Iterators44 Questions
Exam 17: Swing I37 Questions
Exam 18: Swing II31 Questions
Exam 19: Java Never Ends26 Questions
Exam 20: Applets25 Questions
Select questions type
An interface can contain defined constants as well as method headings or instead of method headings.
Free
(True/False)
4.7/5
(42)
Correct Answer:
True
Inner classes available outside the scope of their outer class are modified by the keyword:
Free
(Multiple Choice)
4.9/5
(25)
Correct Answer:
A
A class may only implement one interface.
Free
(True/False)
4.8/5
(38)
Correct Answer:
False
If an inner class contains non static members,then the class name must be modified by the keyword:
(Multiple Choice)
4.7/5
(29)
The compiler and the run-time system enforces semantics on the Comparable interface.
(True/False)
4.9/5
(39)
An inner class definition is local to the outer class definition.
(True/False)
4.8/5
(36)
A class that implements an interface but only gives definitions for some of the method headings given in the interface is called a/an:
(Multiple Choice)
4.9/5
(32)
The compareTo method should return _____________ if the calling object equals the parameter.
(Multiple Choice)
4.9/5
(38)
When using the clone method from an inherited base class you should account for a _________ exception.
(Multiple Choice)
4.9/5
(31)
Any constant variables defined in an interface must be defined as:
(Multiple Choice)
4.8/5
(40)
Showing 1 - 20 of 32
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)