Java 8 - Lambda Expression example

Java 8 - Lambda Expression example

Lambda Expression Lambda expression is a new feature in Java 8 . Alternative to anonymous class implementation of interfaces ( with single abstract method ). syntax : (parameters) -> { body of statements } Example - Sorting the list of Employees using comparator Lets...
Java - Try vs Try-with-Resources

Java - Try vs Try-with-Resources

JDK 7 comes with try-with-resources feature which allows automatic closing of resources without explicit finally block leading to minimal code and avoids boilerplate code required for closing of resources...

www.000webhost.com