-
Core Java
A simple application of Lambda Expressions in Java 8
I have been trying to fit in lambda expressions in the code I write and this simple example is a…
Read More » -
Core Java
Arrays.sort versus Arrays.parallelSort
We all have used Arrays.sort to sort objects and primitive arrays. This API used merge sort OR Tim Sort underneath…
Read More » -
Core Java
Predicate and Consumer Interface in java.util.function package in Java 8
In my previous post I wrote about Function interface which is part of java.util.package. I also mentioned about Predicate interface…
Read More » -
Core Java
Function interface – A functional interface in the java.util.function package in Java 8
I had previously written about functional interfaces and their usage. If you are exploring the APIs to be part of…
Read More » -
Core Java
Extracting the elements of the Java Collection- The Java 8 way
We all have extensively used Collection classes like List, Map and their derived versions. And each time we used them…
Read More » -
Core Java
Introduction to Functional Interfaces – A concept recreated in Java 8
Any java developer around the world would have used at least one of the following interfaces: java.lang.Runnable, java.awt.event.ActionListener, java.util.Comparator, java.util.concurrent.Callable.…
Read More » -
Core Java
Introduction to Default Methods (Defender Methods) in Java 8
We all know that interfaces in Java contain only method declarations and no implementations and any non-abstract class implementing the…
Read More » -
Core Java
Using Lambda Expression to sort a List in Java 8 using Netbeans Lambda Support
As part of JSR 335 Lambda expressions are being introduced to the Java language from Java 8 onwards and this…
Read More » -
Core Java
Chain Of Responsibility Design Pattern Example
Avoid coupling the sender of a request to the receiver by giving more than one object a chance to handle…
Read More »