Home » JAVA Programming » Object & Classes » Question
  1. Which of the following statements is correct?
    1. Public method can only be called by object of its class
    2. Public method is accessible only to subclasses of its parent class
    3. Public method can be accessed by calling object of the public class
    4. Public method is accessible to all other classes in the hierarchy
    5. None of these
Correct Option: D

Public method is accessible to all other classes in the hierarchy



Your comments will be displayed only after manual approval.