Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of the following is incorrect statement about packages?
  2. 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.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment