🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: OOP Interview Questions: all 10 questions

Quiz: OOP Interview Questions · Question 6 of 10

Can a static method be overridden in Java?

Can a static method be overridden in Java?

  1. A.Yes, like any method
  2. B.No; a static method with the same signature in a child hides the parent's, with no runtime dispatch
  3. C.Only if it is final
  4. D.Only in abstract classes
Answer & explanation

Correct answer: No; a static method with the same signature in a child hides the parent's, with no runtime dispatch

Which static method runs depends on the declared type, not the object.

Can you get the rest right without peeking?

Take the timed Quiz: OOP Interview Questions quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →