Examveda
Examveda

What happens when a subclass tries to override a static method from the superclass in Java?

A. It overrides the method successfully

B. The static method is hidden

C. It results in a compilation error

D. The static method becomes final

Answer: Option C


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading