Loading…
Loading…
Ten exam-style questions on default methods, conflicting defaults and Interface.super, the class-wins rule, static interface methods that aren't inherited, and private and private static helpers, with explanations.
Practice questions for the article Java Interface default, static and private Methods.
Sort each interface method onto the instance side or the static side before deciding what it may call. Aim for at least 8 out of 10.
Quiz path: step 44. Take the quizzes in this order, after reading each article.
Previous quiz: Interfaces and Abstract Methods (OCP 21)
Next quiz: Enums (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.