Core Java
-
JMH: How to setup and run a JMH benchmark
Health Warning! This post describes how to setup and run a simple JMH benchmark. Micro benchmarks are notoriously difficult to get…
Read More » -
Top 5 Use-Cases For Nested Types
There has been an interesting discussion on reddit, the other day Static Inner Classes. When is it too much? First,…
Read More » -
Functional Factory Pattern
Do you want a REALLY quick way to make a Factory object? Then lambdas or other function-passing is what you…
Read More » -
Java8 Multi-threading ForkJoinPool: Dealing with exceptions
One of the main motivations behind the introduction of Java8 lambdas was the ability to be able to use multicores…
Read More » -
JDBC Tutorial – The ULTIMATE Guide (PDF Download)
In this post, we feature a comprehensive JDBC Tutorial (Java Database Connectivity), an API provided by Oracle that allows programmers…
Read More » -
Programmatically Determining Java Class’s JDK Compilation Version
When it is necessary to determine which JDK version was used to compile a particular Java .class file, an approach…
Read More » -
You Will Regret Applying Overloading with Lambdas!
Writing good APIs is hard. Extremely hard. You have to think of an incredible amount of things if you want…
Read More » -
Java 8 Optional is not just for replacing a null value
Overview In Java 8, you can return an Optional instead of return null; as you might do in Java 7.…
Read More » -
Testing Grunt Plugin From Grunt
Writing tests for grunt plugin turned out to be less straightforward then expected. I needed to run multiple task configurations…
Read More »