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

Popular Categories





Exception : IllegalArgumentException or NullPointerException

+3 votes
77 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 91 views
+6 votes
1 answer 332 views
+2 votes
1 answer 80 views
+7 votes
8 answers 7,340 views
+1 vote
1 answer 816 views
+6 votes
2 answers 2,574 views
+1 vote
1 answer 64 views
+2 votes
1 answer 607 views
0 votes
0 answers 98 views

Not a Member yet?

Ask to Folks Login

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