Core Java
-
java.util.concurrent.Future basics
Hereby I am starting a series of articles about future concept in programming languages (also known as promises or delays)…
Read More » -
How expensive is a method call in Java
We have all been there. Looking at the poorly designed code while listening to the author’s explanations about how one…
Read More » -
Analysing a Java Core Dump
In this post, I will show you how you can debug a Java core file to see what caused your…
Read More » -
Testing Expected Exceptions with JUnit Rules
This post shows how to test for expected exceptions using JUnit. Let’s start with the following class that we wish…
Read More » -
Java 7: Fork/Join Framework Example
The Fork/Join Framework in Java 7 is designed for work that can be broken down into smaller tasks and the…
Read More » -
Increased compile-time safety with phantom types
Introduction Using phantom types is a very simple technique that can be used to increase the compile-time safety of code.…
Read More » -
Singleton Design Pattern – An introspection and best practices
Definition: Singleton is a part of Gang of Four design pattern and it is categorized under creational design patterns. In…
Read More » -
Bloated JavaBeans – Don’t Add “Getters” to Your API
I have recently blogged about an idea how JavaBeans™ could be extended to reduce the bloat created by this widely-accepted…
Read More » -
Java concurrency: the hidden thread deadlocks
Most Java programmers are familiar with the Java thread deadlock concept. It essentially involves 2 threads waiting forever for each…
Read More »