Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is a mechanism for naming and visibility control of a class and its content?
  2. A.
    Object
    B.
    Packages
    C.
    Interfaces
    D.
    None of the Mentioned.

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Packages are both naming and visibility control mechanism. We can define a class inside a package which is not accessible by code outside the package.


Be The First To Comment