1.  Which of the following is a correct interfaces ?


interface A { void print() {} }
abstract interface A { print{}; }
abstract interface A { abstract void print(); { }}
interface A { void print(); }


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  A packages is a collection of


classes
interfaces
editing tools
classes and interfaces


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  TreeMap class is used to implement which one of the following collection interfaces ?


Set
SortedSet
SortedMap
List


Answer

 Option

TreeMap class is used to implement SortedMap.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Which of the following classes directly implemented Set interface ?


Vector
HashSet
LinkedList
HashTable


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  What is the name of the collection interface used to represent elements in a sequence ?


Collection
Set
List
Map


Answer

 Option

The List is a collection interface which permits duplicates and represent elements in a particular order.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report