aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java and C Programming Fundamentals
  • Which of the following accessibility modes in Java does n...
Multiple choice

Which of the following accessibility modes in Java does not allow a method to access the data members from the non-subclass of the same package?

  1. Protected

  2. Public

  3. Private

  4. No modifier

  5. Virtual

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This accessibility mode in Java does not allow a method to access the data members from the non-subclass of the same package.

Keep practicing — related questions

  • Which of the following types of accesses in Java allows a method to be accessible to all the classes of a p...
  • Which access modifier allows to access only within the package?
  • Which keyword can protect a class in a package from accessibility by the classes outside the package
  • What is the most restrictive access modifier that will allow members of one class to have access to members...
  • What is the most restrictive access modifier that will allow members of one class to have access to members...
  • Which keyword can protect a class in a package from accessibility by the classes outside the package?
  • You want a class to have access to members of another class in the same package. Which is the most restrict...
  • You want a class to have access to members of another class in the same package. Which is the most restrict...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy