Java 8: CompletableFuture

CompletableFuture is an implementation of the Future interface but with a modern twist. It takes advantage of functional operations to promote asynchronous/event-driven programming model.

5 min read

Chaining Optionals in Java 8

Optionals in Java can help you to write a program without null checks. Chaining Optionals in a Stream enables to pick the first Optional which has a value and return it.

1 min read

Optionals in Java 8

If you have had any experience with Java, then you most likely have seen the NullPointerException. Optional in Java 8 are a way to fight them.

5 min read

The fork/join framework in Java

Introduced in Java 7, the fork/join framework is used to divide a parallelizable task into smaller ones and afterwards combine the intermediate results to get the end result.

2 min read