Can methods be overloaded based on the return types ?

Can methods be overloaded based on the return types ?

No! Methods can\'t be overloaded based on the return type.

 For methods overloading you must change the argument list.

 You can change the number of parameter passed or their data types.The return type may be the same, doesn\'t matter.


By:Jalees
Date:2011-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