Can a method be overloaded by different return type but same argument type?

Can a method be overloaded by different return type but same argument type?

No! For method overloading, the parameter list must be changed. Method overloading does not depend the on return type.

By:Jalees
Date:2014-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher