this is a question from geocities.com/ganesh30/
class NewClass{
static int tomb( char a){
throw new NumberFormatException();
}
public static void main(
String args[]){
try
{
tomb('a');
}
catch (Exception e)
{
System.out.println("Done");
}
}
};
even if the tomb function is not returning any thing(it is declared to return integer )there is no compiler error. why?
[ April 23, 2007: Message edited by: Prahlad Joshi ]