Introduction to GraphQL
1. Overview GraphQL is a query language, created by Facebook with the purpose of building client applications based on intuitive and flexible syntax, for describing their data requirements and...
View ArticleDifference Between Two Dates in Java
1. Overview In this quick write-up, we’ll explore multiple possibilities of calculating the difference between two dates in Java. 2. Core Java 2.1. java.util.Date Let’s start by using the core Java...
View ArticleRunnable vs. Callable in Java
1. Overview Since the early days of Java, multithreading has been a major aspect of the language. Runnable is the core interface provided for representing multi-threaded tasks and Callable is an...
View ArticleIntroduction to EJB JNDI Lookup on WildFly Application Server
1. Overview Enterprise Java Beans (EJB) are the core part of the Java EE specification, aimed at simplifying the development of distributed enterprise-level applications. The life-cycle of EJBs is...
View ArticleIntroduction to javax.measure
1. Overview In this article, we’ll introduce the javax.measure library – which provides a unified way of representing measures and units in Java. While working with a program containing physical...
View ArticleSpring Yarg Integration
1. Overview Yet Another Report Generator (YARG) is an open source reporting library for Java, developed by Haulmont. It allows creating templates in most common formats (.doc, .docs, .xls, .xlsx,...
View ArticleIntroduction to Vavr’s Validation API
1. Overview Validation is a frequently occurring task in Java applications, and hence a lot of effort has been put into the development of validation libraries. Vavr (formerly known as Javaslang)...
View ArticleDelete a Directory Recursively in Java
1. Introduction In this article, we’ll illustrate how to delete a directory recursively in plain Java. We’ll also look at some alternatives for deleting directories using external libraries. 2....
View Article“Sneaky Throws” in Java
1. Overview In Java, the sneaky throw concept allows us to throw any checked exception without defining it explicitly in the method signature. This allows the omission of the throws declaration,...
View ArticleOutOfMemoryError: GC Overhead Limit Exceeded
1. Overview Simply put, the JVM takes care of freeing up memory when objects are no longer being used; this process is called Garbage Collection (GC). The GC Overhead Limit Exceeded error is one from...
View ArticleSpring MVC Setup with Kotlin
1. Overview In this quick tutorial, we’ll take a look at what it takes to create a simple Spring MVC project with the Kotlin language. 2. Maven For the Maven configuration, we need to add the...
View ArticleGuide to Collections API in Vavr
1. Overview The Vavr library, formerly known as Javaslang, is a functional library for Java. In this article, we explore its powerful collections API. To get more information about this library,...
View ArticleGuide to JDeferred
1. Overview JDeferred is a small Java library (also supports Groovy) used for implementing asynchronous topology without writing boilerplate code. This framework is inspired by the Jquery’s...
View ArticleJava Weekly, Issue 193
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Java to Move to 6-Monthly Release Cadence [infoq.com] Moving forward, Java will be released twice a year. This...
View ArticleHow to Iterate Over a Stream With Indices
1. Overview Java 8 Streams are not collections and elements cannot be accessed using their indices, but there are still a few tricks to make this possible. In this short article, we’re going to look...
View ArticleIntegrating Retrofit with RxJava
1. Overview This article focuses on how to implement a simple RxJava-ready REST Client using Retrofit. We’ll build an example application interacting with the GitHub API – using the standard Retrofit...
View ArticleStringBuilder and StringBuffer in Java
1. Overview In this short article, we’re going to look at similarities and differences between StringBuilder and StringBuffer in Java. Simply put, StringBuilder was introduced in Java 1.5 as a...
View ArticleNew in Spring Security OAuth2 – Verify Claims
1. Overview In this quick tutorial, we’ll work with a Spring Security OAuth2 implementation and we’ll learn how to verify JWT claims using the new JwtClaimsSetVerifier – introduced in Spring Security...
View ArticleIntroduction to MBassador
1. Overview Simply put, MBassador is a high-performance event bus utilizing the publish-subscribe semantics. Messages are broadcasted to one or more peers without the prior knowledge of how many...
View ArticleExample of Vertx and RxJava Integration
1. Overview RxJava is a popular library for creating asynchronous and event-based programs, it takes inspiration from the main ideas brought forward by the Reactive Extensions initiative. Vert.x, a...
View Article