JDK 7 Features
Project Coin : Small language enhancements
Its a time to think of new features in JDK, entire JAVA community closely watching the progress of JAVA/JDK development in Oracle. This release comes with small java language change to major featuristics. Following are few details of feature/changes
- Strings in switch
Refer for more details in blogvoid print(String s) { switch (s) { case "hello": System.out.println("hello: "+s); break; case "wow": System.out.println("wow: "+s); break; default: System.out.println("Wrong option: "+s); } }
- Binary integral literals and underscores in numeric literals
- Read here
- Multi-catch and more precise rethrow
Refer for more details in mail archivetry { doWork(file); } catch (final IOException|SQLException ex) { logger.log(ex); throw ex; }
- Improved type inference for generic instance creation (diamond)
- Read mail archive
- try-with-resources statement
- Read here
- Simplified varargs method invocation
- Read here
Read following links to know more about the JDK SE 7.0 features. JDK 7 Project Coin: Project Page | mailing list | Joe Darcy and other Sun bloggers | wiki
1 comment:
I am very glad to thank you for such kind of rich and informative blog.i really enjoyed while reading your ideas.
DOT NET Training in Chennai
Hadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
JAVA Training in Chennai
German Classes in chennai
SEO Training in Chennai
Selenium Training in Velachery
Post a Comment