मराठी

A wrapper class is used to convert any given data type into an ______.

Advertisements
Advertisements

प्रश्न

A wrapper class is used to convert any given data type into an ______.

रिकाम्या जागा भरा
Advertisements

उत्तर

A wrapper class is used to convert any given data type into an object.

Explanation:

In Java, primitive data types (like int, char, or double) are not objects. A wrapper class takes these raw values and wraps them inside an object container, allowing them to be stored in Java collections (like ArrayList) and manipulated using object-oriented methods.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: Library Classes - Exercises [पृष्ठ १३४]

APPEARS IN

रूपा पंडित Computer Applications [English] Class 10 ICSE
पाठ 5 Library Classes
Exercises | Q 2. (v) | पृष्ठ १३४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×