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.
- Download free practice test for CIW Master CIW Enterprise Developer exam.
- Download free practice test for SUN SCBCD exam.
- Best exam simulation SUN scdjws download free trial.
- Download free practice test for SUN SCJP exam.
- Download free practice test for SUN SCJP 5/6 exam.
- Become SUN SCMAD certified.
- Download free practice test for scwcd SCWCD exam.
- Get certified in first attempt download 310-035 - SCJP 2 simulation.
- Click here to get free CX310-055 Java 5.0 exam practice questions.
- Download free practice test for CX310-056 SCJP 5.0 Java Upgrade exam.
- Click here to get free CX310-065 SCJP 6.0 exam practice questions.
- Download free practice test for CX310-066 SCJP Upgrade exam.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.