Q. Which method defined in Integer class can be used to convert a whole number in string type to primitive int type. (Solved)
1. valueOf()
2. intValue()
3. parseInt()
4. getInteger()
- c. parseInt()
1. valueOf()
2. intValue()
3. parseInt()
4. getInteger()