Learn Java by Examples

Everything you want to know about Java.

Java 7 New Features

  1. Using String literals in switch statements.
  2. Using Underscores in literals to improve code readability
  3. Using the try-with-resources block to improve exception handling code.
  4. Catching multiple exception types in a single catch block.
  5. Rethrowing exceptions
  6. Using the diamond operator for type inference.
  7. Using the @SafeVarargs annotation.
  8. How to search / find files in a directory using DirectoryStream in Java 7.?
  9. How to create and delete a file in Java 7 using java.nio ?
  10. How to Copy and Move a file in Java 7 using java.nio ?.
  11. How to read and write a file in Java 7 using java.nio API ?
  12. Determining the file content type.
  13. Creating files and directories.
  14. Binary Literals in Java 7.


‹
›
Home
View web version
Powered by Blogger.