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 » -
50 Servlet Interview Questions and Answers
Servlets are very important topic of Java EE and all of the web applications framework such as Spring and Struts…
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 » -
Async Servlet Feature of Servlet 3
Before we jump into understanding what Async Servlet is, let’s try to understand why do we need it. Let’s say…
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 » -
Servlet Upload File and Download File Example
File Upload and Download and common tasks in a java web application. Since I have written a lot about java…
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 » -
Spring MVC: Resources
One of the most frequent questions which I receive from my blog readers is how to use css and javascript…
Read More »