Answer Posted / jitu
In case of autoboxing directly the value of the constructor
assign to a variable.i.e object of wrapper class directly
assign to a variable.but it is only possible in case of 1.5
version.
Ex:public class X
{public static void main(String a[])
{Integer i1=new Integer("20");
Integer i2=new Integer("20");
int m1=i1;
int m2=i2;
S.o.p(m1+m2);o/p-20
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Explain with example the concept of constant variable in java.
How we can make copy of a java object?
What are the java ide’s?
what is method reference in java 8?
What are three types of loops in java?
Explain about class in java?
How are destructors defined in java?
Does java map allow duplicates?
Do I need java for windows 10?
Why we cannot override static method?
What are peerless components in java programming?
What does int argc char * argv [] mean?
What is the use of private static?
Does a function need a return?
Explain the difference between protected and default access.