Answer Posted / 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 |
Post New Answer View All Answers
What is the purpose of lambda expressions?
How can constructor chaining be done by using the super keyword?
Can an interface be final?
When should I use stringbuffer?
What are different types of expressions?
Explain about instanceof operator in java?
What is the difference between java applets and applications?
What do u mean by variable?
How are observer and observable used in java programming?
What are the differences between abstract class and interface?
What are different types of encoding?
Mention a package that is used for linked list class in java.
Is it possible to use string in the switch case?
What is api data?
What is function overriding and overloading in java?