मराठी

What is the type of parameter to be given for the method parseInt()? - Computer Applications

Advertisements
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
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×