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
Explain about object oriented programming and its features?
How do you decide when to use arraylist and linkedlist?
What data type is true or false?
What is the argument in java?
What's the difference between an abstract class and interface in java?
Explain heap sort?
Can we extend singleton class?
What are the four pillars of java?
Tell us something about set interface.
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?
What is arrays fill in java?
What is the difference between synchronized and synchronized block?
What are static initalizers in java ?
Can we write a class without main method in java?
How garbage collection is done in java?