follow the link for solution
http://techpitcher.com/blog/?p=11...
User Profile
Collapse
-
You can't overload method on the basis of return type. The reason is that sometime program calls a method for only its side effect. It may or may not use return type. As in our case we have two methods and if you call any method without caring about return value then compiler won't be able to decide which one to call..
To read in more detail visit
http://j2eeinterview.b logspot.comLeave a comment:
-
see the solution in the link
http://j2eeinterview.b logspot.com/2007/06/1.html...Leave a comment:
No activity results to display
Show More
Leave a comment: