Google Guava is a java library with lot of utilities and reusable components.
This requires the library guava-10.0.jar to be in classpath.
The following example shows using Objects.firstNonNull() API.
It returns the first non null parameter of the given two parameters and
throws NullPointerException if both parameters are null.