Interviewer And Interviewee Guide

SWT JFace Interview Question:

Define Autoboxing with an example?

Submitted by: Administrator
The automatic conversion of primitive int type into a wrapper class object is called autoboxing. It does not require to type cast the int value. The modification of primitive wrapper objects is done directly. The following example illustrates autoboxing:

int number;
Integer intObject;
number = 1;
intObject = 2;
number = intObject;
intObject = number;
Submitted by: Administrator

Read Online SWT JFace Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.