Computer Applications
This access specifier can be accessed only by the subclass in other package or any class within the same package.
- protected
- private
- public
- default
Encapsulation & Inheritance in Java
10 Likes
Answer
protected
Reason — protected access specifier can be accessed only by the subclass in other package or any class within the same package.
Answered By
6 Likes
Related Questions
- What is the value returned by function compareTo( ), if the invoking string is less than the string compared? - zero
- value less than zero
- value greater than zero
- None of the above
 
- …………… class is used to convert a primitive data type to its corresponding object. - String
- Wrapper
- System
- Math
 
- Which of these data type value is returned by equals() method of string class? - char
- int
- boolean
- All of these
 
- Assertion (A) Class initialisation is the explicit initialisation of class fields to values. 
 Reason (R) Each class field explicitly initialises to a value via a class field initialiser.- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.