+3 votes
496 views
in Programming by (1.2k points)
i am getting this exception for a null parameter how can i handel it?
closed

1 Answer

+1 vote
by (740 points)
selected by
 
Best answer

you can handel null pointer like this

try{

String A ;

if( A== NULL){

System.out.println("String is null")

}

}catch(throwable ex){

ex.printstacktrace();

}

0
by (1.2k points)
Thanks  for the answering .

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated