Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
  2. A.
    Public
    B.
    Protected
    C.
    No Modifier
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Either we can use public, protected or we can name the class without any specifier.


Be The First To Comment