Hi jothi,
no probs at all.......above code compile and run
with output
1) 1.0
2) 1.0
3) 1.0
4) 10.0
5) 1.0
because--->>
"All the wrapper classes except Character have two constructors -- one that takes the primitive value and another that takes the
String representation of the value. For instance:"
Integer i1 = new Integer(50);
Integer i2 = new Integer("50");