Vidyalelo
Java Programming · Q27

Overriding and Overloading

Programming · Java Programming · question 27

Q27

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
Answer
D.
The static method becomes final

Answer: Option C

Solution

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