can i overload a method with another one that takes the same parameters but has a diferent return ty

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-03-26T20:44:30Z Indexed on 2010/03/26 20:53 UTC
Read the original article Hit count: 455

Filed under:
|

For example can i have something like this:

public static void SAMENAME (sameparameter n) 
{
some code ;
} 

public static String SAMENAME (sameparameter n) 
{
similar code; 
return someString ; 
} 

© Stack Overflow or respective owner

Related posts about java

Related posts about operator-overloading