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 |
what is the difference between @include page and @include file
What is jvm? How its run?
What is the difference between Static and final?
What is autoboxing in java?
what happens when we add the objects morethan the size limit to a hashmap
what is multi-tasking
3 Answers Anand Group, Photon Infotech, Tech Mahindra,
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What are access modifiers in Java ?
Explain about assignment statement?
How do you include a string in java?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What is package private scope in java?