New Features in Java
There are many new features that have been added in java. There are major enhancement made in Java5, Java6, Java7 and Java8 like auto-boxing, generics, var-args, java annotations, enum, premain method , lambda expressions, functional interface, method references etc.
Most of the interviewers ask questions from this chapter.
The important features of JavaSE 8 are lambda expressions, methods references, default methods, functional interface, java 8 date/time, stream classes etc.
JavaSE 7 Features
The important features of JavaSE 7 are try with resource, catching multiple exceptions etc.
JavaSE 6 Features
The important feature of JavaSE 6 is premain method (also known as instrumentation).
J2SE 5 Features
The important features of J2SE 5 are generics and assertions. Others are auto-boxing, enum, var-args, static import, for-each loop (enhanced for loop etc.
J2SE 4 Features
The important feature of J2SE 4 is assertions. It is used for testing.