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

17.  Which of the following is incorrect statement about packages ?


Interfaces specifies what class must do but not how it does.
Interfaces are specified public if they are to be accessed by any code in the program.
All variables in interface are implicitly final and static.
All variables are static and methods are public if interface is defined pubic.


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

18.  When a variable is declared as static , _________


It is automatically initialized before an object of its class is created.
It becomes constant
Its value is changed every time an object of its class is created.
It become public


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

19.  A class implements an interface but does not override all the methods of interface then ___________


It should be declared as abstract class
It should be declared as final class
It must override all the methods of interface
none of these


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

20.  Which of the following package stores all the standard java classes ?


lang
java
util
java.packages


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report