Examveda
Examveda

What is the purpose of method hiding in Java?

A. Creating a static method with the same name as a superclass method

B. Redefining a method with a different return type in a subclass

C. Making a method private in a subclass

D. Defining a new method with the same name in a subclass

Answer: Option A


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading