हिंदी

Given: Integer gw = new Integer (27); The name of the object is

Advertisements
Advertisements

प्रश्न

Given:

Integer gw = new Integer (27);

The name of the object is

विकल्प

  • 27

  • gw

  • GW

  • Gw

MCQ
Advertisements

उत्तर

gw

Explanation:

In Java, the name of the object is the variable identifier used to reference it. Java is strictly case-sensitive, meaning the name must match the exact lowercase declaration gw. The value it stores is 27, while GW and Gw are incorrect variations due to capitalization.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ १३४]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×