मराठी

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×