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...

can anyone explain me the concept of autoboxing?

Answer Posted / durga ganesh reddy

autoboxing is that the conversion of primitive data types
into wrapper class objects automatically.By using generic
types of java 1.5,we an acheive it easily.By declaring, the
collection classes as shown below we can do it.
HashSet<Integer> hs=new HashSet<Integer>();
hs.add(1);
hs.add(2);
Iterator it=hs.iterator(0;
while(it.hasNext())
System.out.println(it.next());

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What variables are stored in stack?

973


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

1052


What is thread safe java?

918


Why is flag used in java?

1073


When should I use singleton?

1038


What is meant by binding in rmi?

1011


What is a boolean expression in java?

1024


What is the use of StringTokenizer class?

1068


Which data type is class in java?

1016


What is a variable declaration?

978


Difference between ‘>>’ and ‘>>>’ operators in java?

1124


What does it mean that a method or field is “static”?

975


What is the exact difference in between Unicast and Multicast object? Where will it be used?

1058


What is the purpose of garbage collection in java? When is it used?

1048


What is the meaning of 3 dots in java?

1166