Core Java
-
A simple application of Lambda Expressions in Java 8
I have been trying to fit in lambda expressions in the code I write and this simple example is a…
Read More » -
Rare Uses of a “ControlFlowException”
Control flows are a “relict” from imperative programming, which has leaked into various other programming paradigms, including Java’s object oriented…
Read More » -
Even in the jdk there is bad code
Java 7, TreeSet and NullPointerException. Recently I tried to compile with java 7 a project developed with java 6. Lot…
Read More » -
How to create a memory leak
This is going to be a rather evil post – something you will be googling when you really wish to…
Read More » -
Why a synchronized StringBuffer was never a good idea
Introduction StringBuffer is a synchronized class for mutable strings. The main problem with making it synchronized is that It was…
Read More » -
Package your classes by Feature and not by Layers
Most of the enterprise Java applications share some similarities in their design. Mostly the packaging of these applications are driven…
Read More » -
Understanding Dynamic Proxy: Spring AOP Basics
Why AOP : To Understand AOP(Aspect Oriented Programming), we need to understand Cross Cutting Concerns in software development . In…
Read More » -
Infamous Java bugs and pitfalls
In year 2000, I was in university and was on the verge of picking a language to build my career…
Read More » -
HotSpot GC Thread CPU footprint on Linux
The following question will test your knowledge on garbage collection and high CPU troubleshooting for Java applications running on Linux…
Read More »