// NumberFormatException
class NumEx
{
public static void main(String args[])
{
try
{
int a = Integer.parseInt ("Senthil") ;
System.out.println(a);
}
catch(NumberFormatException e)
{
System.out.println("\nNumberFormatException : String declared in int data type");
}
}
}In this Program, easy to understand NumberFormatException program in Java.
