aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java 2
  • ________ keyword is used in Java to prevent inheritance.
Multiple choice

________ keyword is used in Java to prevent inheritance.

  1. public

  2. private

  3. final

  4. protected

  5. public protected

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

This keyword is used in Java to prevent inheritance.

Keep practicing — related questions

  • _____________ keyword is used to drive class from super class.
  • In inheritance, when a protected member is inherited in public mode, it becomes ______ in the derived class.
  • Which of the following is not a keyword of Java?
  • Which of the following keywords are used to control access to a class member? (A) default (B) abstract (C) ...
  • Which of the following keywords is used to implement inheritance in Java?
  • The protected data members of a base class become ___________ when privately derivated in the derived class.
  • Which keyword can protect a class in a package from accessibility by the classes outside the package
  • A protected member inherited in a public mode becomes _____________.
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy