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 / jitu

In case of autoboxing directly the value of the constructor
assign to a variable.i.e object of wrapper class directly
assign to a variable.but it is only possible in case of 1.5
version.
Ex:public class X
{public static void main(String a[])
{Integer i1=new Integer("20");
Integer i2=new Integer("20");
int m1=i1;
int m2=i2;
S.o.p(m1+m2);o/p-20

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the interfaces which extends collection interface?

893


What is singleton class in ruby?

969


Difference between a process and a program?

1059


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

1286


What are the two ways to create a thread?

950


What is map in java?

947


What is the use of static class?

1086


What is the properties class in java programming?

945


What are inbuilt functions in java?

999


What is canonical name in java?

1046


What is a lock or purpose of locks in java?

975


How to restrict a member of a class from inheriting by its sub classes?

1287


Why java strings are immutable in nature?

981


What is bytecode in java ?

1118


Can we use a switch statement with strings?

978