What is the type of parameter to be given for the method parseInt()?
Advertisements
प्रश्न
What is the type of parameter to be given for the method parseInt()?
विकल्प
double
String
char
int
MCQ
Advertisements
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2025-2026 (March) Official Board Paper
