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
What are encapsulation, inheritance and polymorphism?
Difference between start() and run() method of thread class?
What do you mean by static variable?
Is java platform independent?
What is java in layman terms?
What is the structure of java?
What is the use of parseint in java?
What is boolean false?
What is class variable java?
Why local variables are stored in stack?
What is a default method?
What are the 4 types of characters?
What are the 2 types of java programs?
How to use string tokenizer class.
What if I write static public void instead of public static void in java?