Loading…
Loading…
Ten exam-style questions on valid and invalid overloads, the resolution order of exact match, widening, boxing and varargs, most specific methods, reference types and null, float versus double, and ambiguous calls, with explanations.
Practice questions for the article Java Method Overloading and Overload Resolution.
The questions follow Java 21 rules, as on the 1Z0-830 exam. For each call, check the phases in order (widening, then boxing, then varargs) and stop at the first one that finds a match. Aim for at least 8 out of 10 before moving on.
Quiz path: step 34. Take the quizzes in this order, after reading each article.
Previous quiz: Pass-by-Value, Returning Objects and Autoboxing (OCP 21)
Next quiz: Chapter 5 Review: Methods (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.