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 importance of finally block in java?
What is boolean law?
What are decalarations?
How will you compute size of a structure?
What will be the default values of all the elements of an array defined as an instance variable?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Is a string literal?
What are the drawbacks of reflection?
Is upper case in java?
What is the base class of all exception classes in java?
Which sorting is used in arrays sort in java?
What is the method to declare member of a class static?
what is the volatile modifier for? : Java thread
What are access specifiers in java ?
Can size_t be negative?