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 primitive array?
Name few java.lang classes introduced with java 8 ?
I don’t want my class to be inherited by any other class. What should I do?
Are variables stored in ram?
What is ascii code?
what is heap memory?
Does java have extension methods?
Why Java is not pure Object Oriented language?
Is this valid in java ? Can we instantiate interface in java?
Can you explain the usages of class.forname()?
What is pre increment and post increment in java?
What is the benefit of lambda expressions?
Differences between traditional programming language and object oriented programming language?
Why do we declare a class static?
What are the types of java languages?