Core Java
-
JAR Hell
What is JAR hell? (Or is it classpath hell? Or dependency hell?) And which aspects are still relevant when considering…
Read More » -
Vertical and Horizontal Decorating
A decorator pattern is one of the best ways to add features to an object without changing its interface. I…
Read More » -
Dynamic Java Code Injection
In this post we’re going to look at how to dynamically load Java code into a running jvm. The code…
Read More » -
Stack safe recursion in Java
In this article, excerpted from the book Functional Programming in Java, I explain how to use recursion while avoiding the…
Read More » -
Retryable operations
In every project that I’ve worked on, there’s always a need of a certain piece of functionality: retrying an operation.…
Read More » -
Easy and Consistent Log4j2 Logger Naming
In the post Portable Logger Names with Java 7 Method Handles, I wrote about using Java 7‘s method handles to…
Read More » -
Common misconception: How many objects does this create?
Overview A common question is how many objects or how many Strings does a section of code create. Often the…
Read More » -
Creating sample HTTPS server for fun and profit
Often during development or/and testing against real-life scenarios we, developers, are facing a need to run a full-fledged HTTPS server,…
Read More » -
5 Weird Java Questions That Will Make Your Head Spin
Some of the weirdest Java puzzlers that we had a chance to get our hands on Even the most experienced…
Read More »