Vidyalelo
Java Programming · Q25

Inheritence

Programming · Java Programming · question 25

Q25

In Java, can a subclass override a static method from its superclass?

A.
No, static methods cannot be overridden
Answer
B.
Yes, a subclass can override static methods
C.
Only if the subclass is marked as "final"
D.
Only if the static method is marked as "private"

Answer: Option A

Solution

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