Vidyalelo
Java Programming · Q17

Inheritence

Programming · Java Programming · question 17

Q17

In Java, can a subclass inherit static methods from its superclass?

A.
Only if the superclass is marked as "abstract"
B.
Only if the subclass is marked as "final"
C.
Yes, a subclass inherits static methods from its superclass
Answer
D.
No, static methods are not inherited

Answer: Option C

Solution

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