Answer Posted / 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 |
Post New Answer View All Answers
how to write a program for sending mails between client and server
what is the difference between preemptive scheduling and time slicing? : Java thread
Is java 9 released?
What is the purpose of void?
Can static method access instance variables ?
Can we have try without catch block?
Write a program to check for a prime number in java?
Why doesn't the java library use a randomized version of quicksort?
What are data structures in java?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is the syntax and characteristics of a lambda expression?
What are the different types of garbage collectors in java?
What is hashtable and explain features of hashtable?
What is hash table in java?
what is comparable and comparator interface?