aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming and Computer Technology
  • Which keyword can protect a class in a package from acces...
Multiple choice technology

Which keyword can protect a class in a package from accessibility by the classes outside the package

  1. private

  2. final

  3. protected

  4. don't use any keyword at all (make it default)

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • The use of protected keyword to a member in a class will restrict its visibility as follows
  • The use of protected keyword to a member in a class will restrict its visibility as follows:
  • We would like to make a member of a class visible in all subclasses regardless of what package they are in....
  • We would like to make a member of a class visible in all subclasses regardless of what package they are in....
  • A method is declared as protected. What classes can access this method? (Choose two. Each option is a corre...
  • Methods which are marked as Protected can be accessed only by classes with in the same package?
  • ________ keyword is used in Java to prevent inheritance.
  • 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