Discussion :: JAVA MCQs
- Which of the following is incorrect statement about packages?
A.
Interfaces specifies what class must do but not how it does.
|
B.
Interfaces are specified public if they are to be accessed by any code in the program.
|
C.
All variables in interface are implicitly final and static.
|
D.
All variables are static and methods are public if interface is defined pubic.
|
Answer : Option D
Explanation :
All methods and variables are implicitly public if interface is declared public.
Be The First To Comment