Java
-
ThreadLocal in Java – Example Program and Tutorial
ThreadLocal in Java is another way to achieve thread-safety apart from writing immutable classes. If you have been writing multi-threaded…
Read More » -
All Your Tests Belong to You: Maintaining Mixed JUnit 4/JUnit 5 and Testng/JUnit 5 Test Suites
If you are seasoned Java developer who practices test-driven development (hopefully, everyone does it), it is very likely JUnit 4…
Read More » -
Java Extension Methods
Whither Extension Methods? Apparently, there’s a java dialect called XTend which does this, but there’s no obvious equivalent of extension…
Read More » -
Overview of implementing Distributed Locks
As we know, locks are generally used to monitor and control access to shared resources by multiple threads at the…
Read More » -
JDK 16: Checking Indexes and Ranges of Longs
In my last post, I described the day period support added with JDK 16 Early Access Build 25. That same…
Read More » -
Static Factories are Great!
Every now and then I jump on classes with multiple constructors or classes that are rigorous to work with. Let…
Read More » -
Spring Web MVC
Spring MVC is a web framework based on the model–view–controller pattern. It is based on the Spring principles and supports…
Read More » -
Day Period Support in JDK 16
JDK 16 Early Access Build 25 (2020/11/18) includes changes for JDK-8247781 (“Day periods support”). As stated in the JDK 16…
Read More » -
Testing Expected Exceptions with JUnit 5
This post shows how to test for expected exceptions using JUnit 5. If you’re still on JUnit 4, please check…
Read More »