Computer Applications
This access specifier is the most open access level.
- Public
- Protected
- Private
- Default
Encapsulation & Inheritance in Java
5 Likes
Answer
Public
Reason — A data member or member method declared as public is accessible inside as well as outside of the class in which it is declared.
Answered By
1 Like
Related Questions
Corresponding wrapper class of float data type is
- FLOAT
- float
- Float
- Floating
What will be the output of the following code?
System.out.println("Lucknow".substring (0, 4));- Lucknow
- Luckn
- Luck
- luck
The method to determine whether the specified char value is in uppercase or not.
- toUpperCase(char)
- toLowerCase(char)
- isLowerCase(char)
- isUpperCase(char)
Assertion (A) Method should be called explicitly either with object reference or class reference.
Reason (R) Method can be any user defined name.- 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.