As you might now, important part of HashMap is hash function which determines which bucket that key-value pair will go…
Tag: Java
Simple way for validating email id format Almost every application needs to validate email id format one way or another.…
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…