Hey there! any question in your mind? Ask It Now!.

Popular Categories





Exception : IllegalArgumentException or NullPointerException

+3 votes
120 views
asked in Programming by jazs (1,220 points)
i am getting this exception for a null parameter how can i handel it?

1 Answer

+1 vote
answered by AsfK (740 points)
selected by jazs
 
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();

}

commented by jazs (1,220 points)
Thanks  for the answering .

Related Questions

0 votes
0 answers 119 views
+6 votes
1 answer 373 views
+2 votes
1 answer 112 views
+7 votes
8 answers 7,587 views
+1 vote
1 answer 957 views
+6 votes
2 answers 3,206 views
+1 vote
1 answer 210 views
+2 votes
1 answer 1,041 views
0 votes
0 answers 128 views

Not a Member yet?

Ask to Folks Login

My Account
357 Folks are online
0 members and 357 guest online
Your feedback is highly appreciated