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.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment