What's New in Java 7
So what is new in Java 7? Not much but there are few interesting things.
1. You can now use Strings in switch statements:
switch(s)
{
case "one":
System.err.println("one!");
break;
case "two":
System.err.println("two!");
break;
case "three":
default:
System.err.println("Default");
break;
}
2. Multiple Exception Handling
try
{
//do someting;
}
catch(Exception1, Exception2 e)
{
//handle exception
}
3. Few other things. Like changes in I/O. T.B.C. :-)
For those who use Kindle there is a free book describing most important Java 7 changes in a small book on Amazon - What's new in Java 7
post info - 0 comments | en | pl | Add comment