The parseInt() method is a static method of the Integer class. Two versions of the parseInt() method are defined in the Integer class. Their signatures are given below:
The first form of the parseInt() method returns an integer representation of the number contained in the string argument as a signed decimal integer.
The second form of the parseInt() method returns an integer representation of the number contained in the string arguments by using the specified base.
Both of the methods throw an object of type NumberFormatException in case the string passed as an argument to the method does not contain a parsable int type number.
- Pass Master CIW Enterprise Developer in first attampt.
- Download free practice test for scbcd SCBCD exam.
- Click here to get free scdjws SCDJWS exam practice questions.
- Pass SCJP in first attampt.
- Download free practice test for scjp-5-0 SCJP 5/6 exam.
- Click here to download scmad test study guide and practice question.
- Pass SCWCD in first attampt.
- Click here to get free 310-035 SCJP 2 exam practice questions.
- Download free practice test for CX310-055 Java 5.0 exam.
- Pass SUN CX310-056 - SCJP 5.0 Java Upgrade
- Pass SCJP 6.0 in first attampt.
- Get certified in first attempt download CX310-066 - SCJP Upgrade simulation.