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

Popular Categories





Exception : IllegalArgumentException or NullPointerException

+3 votes
69 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 71 views
+6 votes
1 answer 316 views
+2 votes
1 answer 72 views
+7 votes
8 answers 7,321 views
+1 vote
1 answer 778 views
+6 votes
2 answers 2,242 views
+1 vote
6 answers 1,170 views
+1 vote
1 answer 51 views

Not a Member yet?

Ask to Folks Login

My Account
834 Folks are online
70 members and 764 guest online
Your feedback is highly appreciated