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

Popular Categories





Exception : IllegalArgumentException or NullPointerException

+3 votes
94 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 114 views
+6 votes
1 answer 354 views
+2 votes
1 answer 92 views
+7 votes
8 answers 7,478 views
+1 vote
1 answer 912 views
+6 votes
2 answers 2,966 views
+1 vote
1 answer 141 views
+2 votes
1 answer 861 views
0 votes
0 answers 119 views

Not a Member yet?

Ask to Folks Login

My Account
447 Folks are online
4 members and 443 guest online
Your feedback is highly appreciated