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
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is the difference between a break statement and a continue statement?
how to prepare for IT Officers Interview in Banks
Does importing a package imports its sub-packages as well in java?
Is there a case when finally will not execute?
What is the parse method in java?
What is currentthread()?
What is the string function?
Difference between stack and queue?
what is a green thread? : Java thread
What is garbage collector?
What is the collection interface?
How we can generate random numbers in java?
What is java objectoutputstream?
What are recursive functions?