Java Versions

Hi guys today I am gonna explain you about the features of different java versions.

Now let us talk about newly added features in every major java release.

Java 11

The latest version.

  • One major change is that you don’t need to compile the java source file with javac tool first. You can directly run the file with java command and it implicitly compiles.This feature comes under JEP 330.
Java String Methods
  • isBlank() - This instance method returns a boolean value. Empty Strings and Strings with only white spaces are treated as blank.
  • strip() - Removes the white space from both, beginning and the end of string.But as we know trim() does the same thing as strip().The difference is when trim() was introduced unicode wasn't evoloved.Now, the new strip() removes all kinds of whitespaces leading and trailing(check the method Character.isWhitespace(c) to know if a unicode is whitespace or not).

Java SE 8  

The code name culture is dropped with Java 8 and so no official code name going forward from Java 8.

Features

  • Lambda Expressions
  • Pipelines and Streams
  • Default methods
  • Type annotations
Java SE 7

The code named Dolphin and released on 2011.

Features
  • Strings in switch statement
  • Multiple Exception Handling
  • Automatic null handling
  • Diamond syntax
Java SE 6

The code named Mustang released on 2006.

Features
  • JDBC 4.0 API
  • Java compiler API
  • Scrpting language support
  • Pluggable annotations
  • Intergrated web services
That's it for today,

Hope to see you guys with a new blog post soon.
Thank You.






Comments