Core Java
-
Increasing heap size – beware of the Cobra Effect
The term ‘Cobra effect’ stems from an anecdote set at the time of British rule of colonial India. The British…
Read More » -
How to Create Extensible Java Applications
Many applications benefit from being open to extension. This post describes two ways to implement such extensibility in Java. Extensible…
Read More » -
Of Hacking Enums and Modifying ‘final static’ Fields
In this newsletter, originally published in The Java Specialists’ Newsletter Issue 161 we examine how it is possible to create…
Read More » -
Do you get Just-in-time compilation?
Remember the last time when you were laughed at by C-developers? That the Java is so slooooow that they would…
Read More » -
Decorate with decorator design pattern
Decorator pattern is one of the widely used structural patterns. This pattern dynamically changes the functionality of an object at…
Read More » -
Changes to String.substring in Java 7
It is common knowledge that Java optimizes the substring operation for the case where you generate a lot of substrings…
Read More » -
Dynamic hot-swap environment inside Java with atomic updates
One could argue that the above title can be shortened as OSGi, and I want to discard that thought process…
Read More » -
Devoxx 2012: Java 8 Lambda and Parallelism, Part 1
Overview Devoxx, the biggest vendor-independent Java conference in the world, took place in Atwerp, Belgium on 12 – 16 November.…
Read More » -
Composing Java annotations
The allowed attribute types of a Java annotations are deliberately very restrictive, however some clean composite annotation types are possible…
Read More »