MCQ
Single Best Answer
Moderate
QWhich of the following pairs of methods will cause a compile-time error due to incorrect method overloading?
ID: #24163
ICSE Computer Application - Class X - 2025 PYQ
198 views
Question Info
#24163Q ID
ModerateDifficulty
ICSE Computer Application - Class X - 2025 PYQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option D
Explanation
(d) void test(int a) and int test(int a)
Explanation: Method overloading is based on method signatures (method name + parameter list). Return type differences (void vs. int) do not differentiate overloaded methods, leading to a compilation error.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic