Java Interview Questions
Saturday, December 24, 2011
Can a method be overloaded based on different return type but same argument type ?
No, because the methods can be called without using their return type in which case there is ambiguity for the compiler.
Can a method be overloaded based on different return type but same argument type ?
2011-12-24T21:47:00-08:00
Kumar
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)