Which of the following statement is true about public and private members in…
RPSC Programmer 2024
Which of the following statement is true about public and private members in Java?
- A.
Private members can be accessed from any other class.
- B.
Private members can be accessed from subclasses.
- C.
Public members can only be accessed within the same class.
- D.
Public members can be accessed from any other class.
- E.
Question not attempted
Attempted by 423 students.
Sign up free to check your answer
Sign up freeLoading lesson…

