Advertisements
Advertisements
प्रश्न
A ______ class is a special kind of class which wraps the value of a primitive data in an object.
रिक्त स्थान भरें
Advertisements
उत्तर
A wrapper class is a special kind of class which wraps the value of a primitive data in an object.
Explanation:
A wrapper class converts a simple primitive data type (like int or char) into a full object instance (like Integer or Character). This allows primitive values to be used in object-oriented structures, such as collections, or to use built-in utility methods like data parsing.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Library Classes - Exercises [पृष्ठ १३४]
