Core Java
-
Optional in Java 8 cheat sheet
java.util.Optional<T> in Java 8 is a poor cousin of scala.Option[T] and Data.Maybe in Haskell. But this doesn’t mean it’s not…
Read More » -
Simple and lightweight pool implementation
Object pools are containers which contain a specified amount of objects. When an object is taken from the pool, it…
Read More » -
5 Things You Didn’t Know About Synchronization in Java and Scala
Practically all server applications require some sort of synchronization between multiple threads. Most of the synchronization work is done for…
Read More » -
Safely Create and Store Passwords
Nearly every time when it comes to user profiles it is necessary to manage user credentials and thus be able…
Read More » -
Apache log4j is the leading logging framework
According to a survey from Zero Turnaround Apache log4j is the leading Java logging framework. This was actually a very…
Read More » -
Injecting Test Doubles in Spring using Mockito and BeanPostProcessors
I’m pretty sure that if you have ever used Spring and are familliar with unit testing, you have encountered a…
Read More » -
Almost named method arguments in JDK 8
Sometimes it would be really nice to have named method parameter in Java, this doesn’t look likely for a long…
Read More » -
Which memory is faster Heap or ByteBuffer or Direct ?
Java is becoming new C/C++ , it is extensively used in developing High Performance System. Good for millions of Java…
Read More » -
Understanding the OutOfMemoryError
Whenever you find yourself staring a stacktrace with OutOfMemoryError in it, it should all be crystal clear. The program has…
Read More »