Advertisements
Advertisements
प्रश्न
Given:
kd = Integer.parseInt("3");
Datatype of kd is:
पर्याय
Integer
String
char
int
MCQ
Advertisements
उत्तर
int
Explanation:
The method Integer.parseInt() is a built-in Java function designed to convert a text string into a primitive whole number. Because the official return type of this method is the primitive integer data type, the variable kd must be an int.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Library Classes - Exercises [पृष्ठ १३४]
