Vidyalelo
Java Programming · Q127

Constructors and Methods

Programming · Java Programming · question 127

Q127

Which of the following statements is correct?

A.
Public method is accessible to all other classes in the hierarchy
Answer
B.
Public method is accessible only to subclasses of its parent class
C.
Public method can only be called by object of its class
D.
Public method can be accessed by calling object of the public class

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board