aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Basics
  • Which of the following access modifers is assigned to a v...
Multiple choice

Which of the following access modifers is assigned to a varible in java class, if explicitly, nothing is mentioned?

  1. Public

  2. Private

  3. Protected

  4. Default type

  5. It causes compile time error.

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

Default type for variable in java class

Keep practicing — related questions

  • Which of the following modifiers in Java is visible to packages and all its subclasses?
  • To promote encapsulation, Java provides an access modifier of ________ type.
  • By using which of the following access modifiers, the variables are accessible only from within their own c...
  • In which of the following access modifiers is access limited to the containing class or types derived from ...
  • Which access modifier allows to access only within the package?
  • Given a method in a protected class, what access modifier do you use to restrict access to that method to o...
  • Given a method in a protected class, what access modifier do you use to restrict access to that method to o...
  • Which accessible modifier is known as 'package accessible modifier'?
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