About Question enthuware.ocajp.i.v7.2.1340 :
Posted: Tue Dec 11, 2012 4:18 pm
Hi,
In this eg. if I try invoking the sum() as sum(10,10); it throws a compiler error that methods are ambiguous.
Though you cld invoke with sum(10,10L) etc.. so this wont be a problem.
But then is this a good eg. to test for overloading?
Thanks.
In this eg. if I try invoking the sum() as sum(10,10); it throws a compiler error that methods are ambiguous.
Though you cld invoke with sum(10,10L) etc.. so this wont be a problem.
But then is this a good eg. to test for overloading?
Thanks.