I am doing simple conversion from string to int but getting number format exception :
I have use below java Program :
String cId = "7000000141";
int iCid = Integer.parseInt(cId);
System.out.println(iCid);
Getting below exception :
Exception in thread "main" java.lang.NumberFormatException: For input string: "7000000141"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:459)
at java.lang.Integer.parseInt(Integer.java:497)
Why I am getting the above exception?