Loading…
Loading…
Ten exam-style questions on the four overriding rules, covariant return types, checked exceptions in overrides, @Override, redeclared private methods, hidden static methods and fields, and final methods, with explanations.
Practice questions for the article Java Method Overriding and Hiding.
For every same-named method, first decide: is it an override, a hide, an overload, or an unrelated redeclaration? Then apply the rules. Aim for at least 8 out of 10.
Quiz path: step 39. Take the quizzes in this order, after reading each article.
Previous quiz: Initialization Order and final Fields (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.