Home > articles > Java 8: 10+ features

Java 8: 10+ features

Oleg Tsal-Tsalko, Lead Software Engineer @EPAM

If you are using Java 8, there is no excuse not to use all the great new language features this platform offers you. Simple switch to JRE 8 might give slight increase in performance of your application due to numerous continuous platform optimizations, however with Java 8 you can experience real boost in engineering productivity and code efficiency.

Use Stream API

Stream API – is not a data structure or a collection, it is an abstraction which allows building operations pipeline over sequence of data elements. By using Stream API, you can build a simple and logical chain of operations. A very important feature of Java 8 is that you can use internal parallelisms. For example, if you need to parallelize a particular operation, writing even the simplest code without using the parallel stream would be doomed to writing lots of code using directly ForkJoinPools, ExecutorServices, and other low level concurrency mechanisms. This used to make the process of writing a code more complicated. In addition, Stream API makes it more convenient to use functional programming in Java. Read more …

Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.