Core Java
-
Writing Clean Tests – Beware of Magic
It is pretty hard to figure out a good definition for clean code because everyone of us has our own…
Read More » -
Java Singleton Design Pattern
Its one of the simplest design pattern in Java. If any one asks me which design pattern you are good…
Read More » -
How to find Prime Factors of Integer Numbers in Java – Factorization
One of the common homework/task in programming courses is about Prime Factorization. You are asked to write a program to find…
Read More » -
OutOfMemoryError on overprovisioned heap
Why am I getting the OutOfMemoryError when allocating a data structure that should happily fit within the heap I have…
Read More » -
Java 8 default methods can break your (users’) code
At first glance, default methods brought a great new feature to the Java Virtual Machine’s instruction set. Finally, library developers…
Read More » -
JavaOne 2014 – Some First Analysis on Submissions
Time is running away these days. So many things happening in parallel and of course the most important Java conference…
Read More » -
Choosing a fast unique identifier (UUID) for Lucene
Most search applications using Apache Lucene assign a unique id, or primary key, to each indexed document. While Lucene itself…
Read More » -
Too Fast, Too Megamorphic: what influences method call performance in Java?
Whats this all about then? Let’s start with a short story. A few weeks back I proposed a change on…
Read More » -
Okay, everybody who touches Java bytecode
The Oracle v. Google holds that copying the Structure, Sequence, and Organization of the Java APIs is a copyright violation.…
Read More »