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:A
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.
Explanation: All methods and variables are implicitly public if interface is declared public.