1(xiii)
What is the type of parameter to be given for the method parseInt()?
- (a)double
- (b)String
- (c)char
- (d)int
Show SolutionHide Solution↓
String
Reason — The method Integer.parseInt() is used to convert a numeric value given in String form into an integer. Therefore, it requires a String parameter as input, not double, char, or int.