Vidyalelo
Java Programming · Q108

Interfaces and Abstract Classes

Programming · Java Programming · question 108

Q108

Which of the following is an 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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board