hi,
let's take the fallowing code
class exception{
public static void main(
String[] a){
try{
int a=10;
int b=0;
int c=a/b;
}
catch(Exception e){
e.getMessage();
}
}
}
In the Aboue code i am not creating any Exception Object useing new Operator.. so, there is no Object.....
is it nothing but say Exception e=null;??
why e,getMessage() giving me nullpointer Exception??
can anybody explain this??
thanks in Advance.
regards
krishna