Core Java
-
How JSR107 Caching Annotations are meant to be used
I am getting a few questions lately on JSR107 caching annotations and whether implementations of JSR107 are providing them. Caching…
Read More » -
How to Convert Byte Array to InputStream and OutputStream in Java
Are you stuck with your coding because you have a byte array and next method in chain needs an InputStream?…
Read More » -
Playing with Java 8 – Lambdas and Concurrency
So Java 8 was released a while back, with a ton of features and changes. All us Java zealots have…
Read More » -
Live Templates in IntelliJ
As described here, IntelliJ’s live templates let you easily insert predefined code fragments into your source code. I have posted…
Read More » -
Difference between State and Strategy Design Pattern in Java
In order to make proper use of State and Strategy design Pattern in Core Java application, its important for a…
Read More » -
HashMap performance improvements in Java 8
HashMap<K, V> is fast, versatile and ubiquitous data structure in every Java program. First some basics. As you probably know,…
Read More » -
Handy New Map Default Methods in JDK 8
The Map interface provides some handy new methods in JDK 8. Because the Map methods I cover in this post…
Read More » -
Clean Synchronization Using ReentrantLock and Lambdas
Recently I was reading an informative post about the differences between synchronized vs ReentrantLock by Javin Paul1. He emphasises on…
Read More » -
Java 8 LongAdders: The Right Way To Manage Concurrent Counters
I just lOvE new toys, and Java 8 has a bunch of them. This time around I want to talk…
Read More »