• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception

 
simmi kamal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ranchers,

I just wanted to get clarified, Is NumberFormatException checked Exception or Runtime Exception??
 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is Runtime Exception,coming under IllegalArguementException.
Hope that helps.
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class which extends RuntimeException are all called Runtime exceptions.

Java Doc
 
simmi kamal
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nabila and Prabhu for clearing my doubt.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic