Java Examples
Sun certification level tutorial and examples Organized by topic.
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
}
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment