Start learning →

Match overload traps: 1. Clash: p. Ambiguity 2. Cast: q. Promotion 3. Vararg: r. Low rank

A1-p, 2-q, 3-r
B1-p, 2-r, 3-q
C1-q, 2-p, 3-r
D1-r, 2-p, 3-q
Answer & Solution
Correct answer: A. 1-p, 2-q, 3-r
Overload ambiguity triggers compiler errors when multiple matches tie, widening promotion resolves ties, and varargs have lowest precedence.
Practise this question with Quill — ICSE Class 10 →

Keep practising User-Defined Methods and Constructors

Browse all User-Defined Methods and Constructors questions for ICSE Class 10, or explore more Computer Applications topics.

Start a User-Defined Methods and Constructors lesson →