In Java, which of the following statements is false?
A.A public member of a class can be accessed from any package.
B. A private member of a class cannot be accessed by methods of the same class.
C.A private member of a class cannot be accessed from a derived class.
D. A protected member of a class can be accessed through its derived class.
Answer:B
In Java, which of the following statements is false?
A.A public member of a class can be accessed from any package. B. A private member of a class cannot be accessed by methods of the same class. C.A private member of a class cannot be accessed from a derived class. D. A protected member of a class can be accessed through its derived class.
Explanation: A private member of a class cannot be accessed by methods of the same class.