AutoBoxing : Tiger [a.k.a Java 1.5]

AutoBoxing :
Formerly we could not do stuff Like

Integer a = 6;

instead we did a :

Interger a =new Interger (6);

This is now automatic.

We can also do
Integer b = a *5 +1; // compiler unboxes for reference

Neat dont you think .

If you use JDK 1.5 specific features ,needles to say, you will need the same or better runtime engine.

Warning : This Messes up you Interview / SCJP preperation study !!!

On the other side it save you a lot of text while coding . A small price to pay.

0 comments:

Post a Comment