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 |
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?
Explain about anonymous inner classes in java?
List some oops concepts in java?
What is skeleton and stub? What is the purpose of those?
Can we have any other return type than void for main method?
Which class should you use to obtain design information about an object in java programming?
Why do we use string?
Explain differences between collection api and stream api?
What is overloading and overriding in java?
Do you know why doesn't the java library use a randomized version of quicksort?
Name and explain the types of ways which are used to pass arguments in any function in java.
what is multitherading