Advertisements
Advertisements
Question
What is the type of parameter to be given for the method parseInt()?
Options
double
String
char
int
MCQ
Advertisements
Solution
String
Explanation:
Integer.parseInt() accepts a String argument that represents an integer and returns the corresponding primitive int.
Example: Integer.parseInt(“123”) returns the int value 123.
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
