हिंदी

Identify the true statement. (a) Integer value = new value (65); (b) Integer int = new Integer (65); (c) Int val = new int(64); (d) Integer val = new Integer(64);

Advertisements
Advertisements

प्रश्न

Identify the true statement.

विकल्प

  • Integer value = new value (65);

  • nteger int = new Integer (65);

  • Int val = new int(64);

  • Integer val = new Integer(64);

MCQ
Advertisements

उत्तर

Integer val = new Integer(64);

Explanation:

Integer is a wrapper class in Java, and an object of Integer can be created using the new keyword with an integer value.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ १३४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×