Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
and many more ....
I agree to the Terms and Privacy Policy

Spring MVC – HTTP message converter

Quite often you need to provide users with the same data, but in different forms, like JSON, PDF, XLS, etc. If your application is Spring Framework based, this task can be achieved using HTTP message converters. HTTP message converters are applied when HTTP request (or its parts) needs to be converted into type required for handler method argument (see: Handler ...

Read More »

What are we Testing Again?

This is a general case around Test Data in the Test Smells. Let’s have a look at a test snippet: 1 2 3 4 5 @Test void dayPercentile() {     assertThat(DayPercentileCalculator.calculate(EXAMPLE_1))         .isEqualTo(EXAMPLE1_EXPECTED); } What does this test tell us? Here’s what I think it tells me: There is a DayPercentileCalculatorIt has a calculate methodWe’re looking at the output of that methodWe’re ...

Read More »

Java Record

The https://openjdk.java.net/jeps/359 outlines a new Java feature that may/will be implemented in some future versions of Java. The JEP suggests having a new type of “class”: record. The sample in the JEP reads as follows: 1 2 3 4 5 6 record Range(int lo, int hi) {   public Range {     if (lo > hi)  /* referring here to the implicit ...

Read More »

Chain of Memory Hogs

As we saw in The Structural Bug, the composition of functions can itself be a problem. On top of that, as we move to containerised apps, where we’re starting to run software on microscopic machines, it becomes more important than it used to be to worry about things like memory consumption and resource usage. Programming languages like Java and JavaScript ...

Read More »

JAR File Handles: Clean Up After Your Mess!

In Ultra ESB we use a special hot-swap classloader that allows us to reload Java classes on demand. This allows us to literally hot-swap our deployment units – load, unload, reload with updated classes, and phase-out gracefully – without restarting the JVM. Windows: supporting the forbidden land In Ultra ESB Legacy the loader was working fine on Windows, but on ...

Read More »

Become a Master of Java Streams – Part 2: Intermediate Operations

Just like a magic wand, an Intermediate operation transforms a Stream into another Stream. These operations can be combined in endless ways to perform anything from simple to highly complex tasks in a readable and efficient manner. This article is the second out of five, complemented by a GitHub repository containing instructions and exercises to each unit. Part 1: Creating ...

Read More »

Android Go Apps and Regular Apps – Core Differences

In this post, we feature a comprehensive article on the Core Differences of Android Go Apps and Regular Apps. The Android Go OS depends on the customary rendition of Android; however, it’s advanced to keep running on cell phones with 512 MB to 1 GB of RAM. The primary variant of Android Go was demonstrated on Android Oreo, yet the most recent ...

Read More »

The Problem With Creating Generic Arrays

In this post, we feature a comprehensive article which explains the Problem with creating Generic Arrays. The Java programming language added generics in September of 2004 in the Java 5.0 “Tiger” release. The system of generics or type parameterization, extends Java’s existing type system while providing type safety. 1. Introduction Java has the Collections Framework, providing a library of generic ...

Read More »