Guide to FastUtil 1. Introduction In this tutorial, we’ll be looking at the FastUtil library. First, we’ll code some examples of its type-specific collections. Then, we’ll analyze the performance that gives FastUtil its name. Finally, let’s take a peek at FastUtil‘s BigArray utilities. 2. Features The FastUtil Java library seeks to extend the Java… Continue Reading fastutil

Validating RequestParams and PathVariables in Spring 1. Introduction In this tutorial, we’ll take a look at how to validate HTTP request parameters and path variables in Spring MVC. Specifically, we’ll validate String and Number parameters with JSR 303 annotations. To explore validation of other types, refer to our tutorials about Java Bean Validation and method constraints or… Continue Reading spring-validate-requestparam-pathvariable

Intro to Inversion of Control and Dependency Injection with Spring 1. Overview In this article, we’ll introduce the concepts of IoC (Inversion of Control) and DI (Dependency Injection), and we’ll then take a look at how these are implemented in the Spring framework. Further reading: Wiring in Spring: @Autowired, @Resource… Continue Reading inversion-control-and-dependency-injection-in-spring

ClassNotFoundException vs NoClassDefFoundError 1. Introduction Both ClassNotFoundException and NoClassDefFoundError occur when the JVM can not find a requested class on the classpath. Although they look familiar, there are some core differences between these two. In this tutorial, we’ll discuss some of the reasons for their occurrences and their solutions. 2.… Continue Reading java-classnotfoundexception-and-noclassdeffounderror

Java CyclicBarrier vs CountDownLatch 1. Introduction In this tutorial, we’ll compare CyclicBarrier and CountDownLatch and try to understand the similarities and differences between the two. 2. What Are These? When it comes to concurrency, it can be challenging to conceptualize what each is intended to accomplish. First and foremost, both CountDownLatch and CyclicBarrier… Continue Reading java-cyclicbarrier-countdownlatch