Multiple choice technology programming languages

Methods can be overloaded with a difference only in the type of the return variable.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Method overloading in Java requires differences in the parameter list (number, type, or order of parameters). Return type alone is insufficient to distinguish overloaded methods because the compiler cannot determine which method to call based only on the return type, especially when the method call result isn't assigned or used.