Home » JAVA Programming » Interfaces » Question
  1. Which of the following is an incorrect statement about packages?
    1. All variables are static and methods are public if interface is defined pubic
    2. All variables in interface are implicitly final and static
    3. Interfaces are specified public if they are to be accessed by any code in the program
    4. Interfaces specifies what class must do but not how it does
    5. None of these
Correct Option: A

All methods and variables are implicitly public if interface is declared public.



Your comments will be displayed only after manual approval.