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 |
Can a static class have a constructor java?
What is java thread dump, how can we get java thread dump of a program?
Why are the methods of the math class static?
What is the differences between heap and stack memory in java? Explain
What are the advantages of assembly language?
What are the 2 types of java programs?
Can you instantiate the math class?
if am have 100 threads(for ex:T1,T2---T100) how we give priority to these threads and how the system excute these threads
What is split return?
what is a thread pool in java and why is it used?
Explain when noclassdeffounderror will be raised ?
What is api in java?