Core Java
-
Java Thread Pool Example using Executors and ThreadPoolExecutor
A thread pool manages the pool of worker threads, it contains a queue that keeps tasks waiting to get executed.…
Read More » -
IntelliJ IDEA: Generate equals, hashCode and toString with Google Guava
THE PROBLEM In the world of Java, we’re quite often in the need of writing equals, hashCode and toString methods.…
Read More » -
Processing huge files with Java
I recently had to process a set of files containg historical tick-by-tick fx market data and quickly realized that none…
Read More » -
Garbage Collection Analysis of PCGen
Introduction I decided to combine two software loves of mine and perform some analysis on PCGen, a popular Java based…
Read More » -
How many threads do I need?
It depends on your application. But for those who wish to have some insight about how to squeeze out most…
Read More » -
QOTD: Java Thread vs. Java Heap Space
The following question is quite common and is related to OutOfMemoryError: unable to create new native thread problems during the…
Read More » -
The Importance of Packages
I remember approximately 15 years ago when I started learning Java. I read a lot about this ‘package’ thing and…
Read More » -
Java heap space, native heap and memory problems
Recently, I was discussing with a friend, why the Java process uses more memory than the maximum heap that we…
Read More » -
Selecting your Collections library
Is this really something you should bother? Is there something fundamentally wrong with java.util.ArrayList and java.util.HashMap? For most of the…
Read More »