← Quiz: Java Interview Questions: all 10 questions
Quiz: Java Interview Questions · Question 1 of 10
Can a static method be overridden?
Can a static method be overridden?
- A.Yes
- B.No — it can only be hidden
- C.Only in interfaces
- D.Only if it is final
Answer & explanation
Correct answer: No — it can only be hidden
Static methods belong to the class; a same-signature static method in a subclass hides the parent's.
Can you get the rest right without peeking?
Take the timed Quiz: Java Interview Questions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →