Home » JAVA Programming » Modifier Types » Question
  1. Which of the following modifier means a particular variable cannot be accessed within the package?
    1. protected
    2. default
    3. private
    4. public
    5. None of these
Correct Option: C

Private variables are accessible only within the class.



Your comments will be displayed only after manual approval.