Java MCQ: Which of the following best describes method overloading in Java?
a) Method overloading occurs when two methods in the same class have the same name but different parameter lists
b) Method overloading is the process of overriding a method in a subclass
c) Method overloading refers to the runtime resolution of method calls
d) Method overloading is when a method has multiple return types
Answer:
a) Method overloading occurs when two methods in the same class have the same name but different parameter lists
Explanation:
Method overloading in Java occurs when a class has two or more methods with the same name but different parameter lists (different type, number, or both). Overloaded methods can have different return types, but the difference in