Thursday, March 12, 2009

Can a method be overloaded based on different return type but same

Question :Can a method be overloaded based on different return type but same
argument type ? (CoreJava)

Answer :No, because the methods can be called without using their return type in
which case there is ambiquity for the compiler

No comments: