हिंदी

Given: kd = Integer.parseInt("3"); Datatype of kd is:

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 [पृष्ठ १३४]

APPEARS IN

रुपा पंडित Computer Applications [English] Class 10 ICSE
अध्याय 5 Library Classes
Exercises | Q 1. (ix) | पृष्ठ १३४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×