Tuesday, March 3, 2009

simple code java autounboxing



public class AutounboxingEx {
public static void main(String arg[])
{
Integer wI= new Integer(10);
int i= wI; //error in 1.4 valid in 1.5


System.out.println(i); //10
}
}



0 comments:

Post a Comment