Core Java
-
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 » -
How aggressive is method inlining in JVM?
Ctrl + Alt + M is used in IntelliJ IDEA to extract method. Ctrl + Alt + M. It’s as…
Read More » -
Multiple Java JDK(s), on your MacOSX environment
Yet again, a small tip towards configuring your Java development environment on a Mac (OSX 10.8.x+). If you are really…
Read More »