Advertisements
Advertisements
प्रश्न
Write two importance of wrapper class.
लघु उत्तर
Advertisements
उत्तर
There are mainly two uses with wrapper classes.
- To convert simple data types into objects, that is, to give object form to a data type; here constructors are used.
- To convert strings into data types (known as parsing operation'), here methods of type parseXXX() are used.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Library Classes - Exercises [पृष्ठ १३४]
