Declaration And Access Control - Study Mode
[#21] What is the access level of a class member declared as private in Java?
Correct Answer
(C) private
[#22] Which access modifier allows a class member to be accessed within the same package and its subclasses?
Correct Answer
(C) protected
[#23] What is the keyword used to declare a class that cannot be instantiated and can only be extended?
Correct Answer
(D) abstract
[#24] In Java, what access modifier is used to specify that a class member can be accessed only within its class?
Correct Answer
(B) private
[#25] Which of the following is not an access modifier in Java?
Correct Answer
(A) abstract