Core Java
-
Double your money again
Overview A long time ago I wrote an article on using double for money. However, it is still a common…
Read More » -
The Perfect Singleton
From time to time I met Java programmers that are not really sure how they should implement Singleton pattern properly.…
Read More » -
C++ or Java, which is faster for high frequency trading?
Overview There are conflicting views as to what is the best solution for high frequency trading. Part of the problem…
Read More » -
Java and Memory Leaks
Overview The term “memory leak” is used in Java in a manner which is different to how it is used…
Read More » -
How to get C like performance in Java
Overview Java has many areas which can be slow. However for every problem there is a solution. Many solutions/hacks require…
Read More » -
JVM options: -client vs -server
Have you ever wonder what is this -client or -server switch when you run your java app? e.g.: javaw.exe -client…
Read More » -
Incorrect Core Java Interview Answers
Overview On the internet, Java interview questions and answers get copied from one web site to another. This can mean…
Read More » -
Java 7: try-with-resources explained
This article examines the use of the try-with-resources statement. This is a try statement that declares one or more resources.…
Read More » -
Java Secret: Using an enum to build a State machine
Overview The enum in Java is more powerful than many other languages which can lead to surprising uses. In this…
Read More »