Simple way for validating email id format Almost every application needs to validate email id format one way or another.…
Category: Other Posts
Simple way to implement equals() & hashcode() For any POJO classes with multiple attributes, generally equals & hashcode implementation is…
Multiple arguments: In case of a functional interface whose method has multiple arguments, below example shows how to implement it…
Streams reduce with identity: reduce() is a method provided as a part of streams api which comes handy when you…
Example of reduce function in Java 8 streams: reduce() is a method provided as a part of streams api which…
Lambda Expressions: New addition to Java 8 – Lambda Expressions. Lambdas will mainly remove the ceremonious syntax from anonymous class declaration.…
Multi Catch Exceptions In Java 7, multi catch exceptions are introduced. As shown in below highlighted code, catch block can…