जॉइन Examsbook
1562 0

प्र: What is Auto boxing and unboxing?

  • उत्तर देखें
  • Workspace

उत्तर :
व्याख्या :

Autoboxing is the process of converting a primitive type data into its corresponding wrapper class object instance. Example: Integer number = new Integer (100); // number is now refers to the object 100   Unboxing is the process of converting a wrapper instance into a primitive type. Example:  Integer number = new Integer (100);  int num = number;// without type casting number would be changed into int type

क्या आपको यकीन है

  त्रुटि की रिपोर्ट करें

कृपया संदेश दर्ज करें
त्रुटि रिपोर्ट सफलतापूर्वक जमा हुई