what is auto boxing
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / narayanarao
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 ? | 10 Yes | 4 No |
How do you define a variable?
What is an accessor?
What is the Set interface?
What is race condition ?? (Threading concept) TCS 2 sept10
What is difference between jdk,jre and jvm?
Why do we need public static void main(String args[]) method in Java...?
What is a stream? what are the different types and classes of Streams?
diff. b/w JAVA and javascript...
What is array length?
in a console we r giving java <class name> if r pressing enter where it'll goes
How do you escape sequences in java?
What is the difference between a vector & an array list?