हिंदी

Define a wrapper class. - Computer Applications

Advertisements
Advertisements

प्रश्न

Define a wrapper class. 

परिभाषा

उत्तर

The Java programming language uses wrapper classes included in the java.lang library package. The wrapper class includes a primitive data type. When creating an object from a wrapper class, a field in memory is allocated to store primitive data.

For example, 'Integer' is a wrapper class that includes the primitive data type 'int' and the following functions: 

Integer.parseInt() // to convert a String into integer data type 
Integer.toString() // to convert an integer data type to a String
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Library Classes - EXERCISES [पृष्ठ १७९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 2 Library Classes
EXERCISES | Q VII. 3. | पृष्ठ १७९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×