java 8 – CompletableFuture completeExceptionally example
Let’s see what happens when async calls exception is raised and how we can handle this situation.
Let’s see what happens when async calls exception is raised and how we can handle this situation.
Java8 understanding the LocalDateTime
Let’s see how we can paralellize java application. Suppose we have asked to develop application where given the libraries list we need to calculate the number of books in each library. Suppose calculation is an expensive operation. The first thing that comes to our mind is to do this by streams.
Let’s see how we can randomly generate numbers from the range in java
Preconditions meaning is to check and validate method input parameters. Let’s see how’s it can be done using Guava’s Preconditions
class. Continue Reading
There are various ways of splitting string in java using certain delimiter.
In this blog let’s explore the LocalDate and LocalTime.
Default methods are introduced in Java 8. The main purpose of default method is to make possible evolving an existing API in compatible way. Interfaces can contain method implementation for which implementing class doesn’t need to provide implementation.
Java Map interface doesn’t provide possibility to have multiple keys for single entry. Let’s see what are the possible workarounds.
Find random free port available for binding .