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.
- Click here to get free scbcd SCBCD exam practice questions.
- Pass SUN scdjws - SCDJWS
- Download free practice test for scjp SCJP exam.
- Pass SCJP 5/6 in first attampt.
- Download free practice test for scmad SCMAD exam.
- Download practice question and study guide for scwcd for exam.
- Click here to get free 310-035 SCJP 2 exam practice questions.
- Best exam simulation SUN CX310-055 download free trial.
- Click here to download CX310-056 test study guide and practice question.
- Download free practice test for CX310-065 SCJP 6.0 exam.
- Pass SUN CX310-066 - SCJP Upgrade
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.
