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 |
Who is founder of java?
What is hashmap in java?
What is the difference between Java Bean and Java Class.?
How to create two different thread class inside a main function?
Explain polymorphism citing an example.
How do you initialize an arraylist in java?
What is java virtual machine and how it is considered in context of java’s platform independent feature?
what is generics in jdk1.5?
How do you make a thread in java?
what is platform independence in java?
How do you call a reference in java?
What is finalize()?