1.  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

2.  An interface contains


The method definitions
The method declaration
Method declaration and definition
none of these


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 these access specifiers can be used for an interface ?


Public
Protected
private
All of the mentioned


Answer

 Option

Access specifier of interface is either public or no specifier. When no access specifier is used then default access specifier is used due to which interface is available only to other members of the package in which it is declared, when declared public it can be used by any code.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  To specify default access to a variable or a method ________ keyword is used


public
private
default
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report