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
Can we use catch statement for checked exceptions?
What is the major difference between linkedlist and arraylist?
What is t in generics in java?
Is double bigger than float?
Why bytecode is called bytecode?
What is Recursion Function?
What is run time allocation?
Can we clone singleton class in java?
What class of exceptions are generated by the java run-time system?
What is java used for?
What is a newline character in java?
What is immutable in java?
What do you understand by abstract classes?
What is the list interface?
Explain an intermediate language?