Multiple choice technology programming languages

Which is true about overloading?

  1. return type should be different

  2. access speciifer should be different

  3. arguments should be different

  4. the overloaded methods should throw a different excpetion

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

Method overloading requires different parameter lists (type, count, or order). Return type, access specifier, and exception throws alone don't distinguish overloaded methods - the compiler would see them as duplicate methods.