Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is auto boxing

Answer Posted / vijay, hangar17

Auto boxing is introduced in jdk1.5
Automatic conversion from int to Integer is Auto boxing and
automatic conversion back from Integer to int is auto unboxing.

For example

int i;
Integer a

//Manual conversion

i = a.intValue();
a = new Integer(i);

By Auto boxing

i=a;
a=i;

Is This Answer Correct ?    43 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

984


What is the difference between a break statement and a continue statement?

991


how to prepare for IT Officers Interview in Banks

1912


Does importing a package imports its sub-packages as well in java?

927


Is there a case when finally will not execute?

944


What is the parse method in java?

1054


What is currentthread()?

937


What is the string function?

903


Difference between stack and queue?

1017


what is a green thread? : Java thread

956


What is garbage collector?

1012


What is the collection interface?

976


How we can generate random numbers in java?

1083


What is java objectoutputstream?

935


What are recursive functions?

988