Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our YouTube channel to start Rocking right now!
Gain access to the industrys' best FREE video guides including:
1. Core Java guides
2. Enterprise Java guides
3. JVM insights, configuration and troubleshooting guides
4. Java performance guides
5. Java Interview Questions
and many more ....

RESTful services with HATEOAS. Documenting Hypermedia APIs

java-interview-questions-answers

1. Introduction Hopefully the previous part of the tutorial not only unveiled the far-reaching implications of the hypermedia and HATEOAS but has truly convinced us that these are among the fundamental building blocks of the RESTful web services and APIs. In this part we are going to continue this theme with the focus on the documentation aspect in order to ...

Read More »

Mockito ‘thenReturn’ vs Mockito ‘thenAnswer’

When it comes to writing test cases for code, Mockito is one of the most common choices of developers. Then we face the question, how to use thenReturn() and thenAnswer() methods of Mockito? If you are facing this also, don’t worry every one faces or has faced this question and we are here to solve it!! So, get set go… ...

Read More »

Looking at Java Records

JEP 359, available as preview feature in JDK 14, introduces records to Java. Records are an easy way to model plain data aggregates. A simple Range record looks like this: 1 record Range(int from, int to) {} A record definition is literally the same as a final class with: immutable fieldspublic accessorsa constructorimplementations for equals(), hashCode() and toString() So we ...

Read More »

JMetro Version 8.6.11 And 11.6.11 Released

Hi. Another release of JMetro. This time 2 new control have been restyled, bug fixes and other small tweaks. I hope you are all staying safe and well in this strange times. Keep on reading for details. New ColorPicker Style Following is an animation of the new ColorPicker style LIGHT and DARK: ColorPicker JMetro Light style ColorPicker JMetro Dark style ...

Read More »

Java puzzlers from OCA part 7

In this part of the Java Puzzlers from OCA series, I will show multiple ways of defining Strings and potential surprises related to that. Two basic types of creating Strings are creation with new keyword, and by just using the string literal. 1 2 String strWithNew = new String("hey"); String strWithLiteral = "ho"; As Strings are frequently used JVM uses ...

Read More »

Packaging a React App with Spring Boot

1. Introduction This is an in-depth article related to building a react app with Spring Boot. Spring Boot framework has features related to creating web based applications. The framework has utilities and annotations to create REST based services. 2. Spring Boot – React App 2.1 Prerequisites Java 8 or 9 is required on the linux, windows or mac operating system. ...

Read More »

A Java XMPP Load Test Tool

In this article, we will develop an XMPP Load Test Tool written in Java. Table Of Contents 1. Introduction 2. XMPP Load Test tools 3. Prerequisites 4. LoadXmppTest Java program 4.1. Create a new Maven project 4.2. Create the main class 4.3. XmppManager class 4.4. Build 4.5. Load test 5. Summary 6. References 7. Download the Maven project   1. ...

Read More »

Seriously How Long!?

I mentioned the delay caused by a slow build when talking about the costs of tweaking code that has a slow build. Let’s define what a slow build is. It’s slow if it takes over 4 minutes. If it’s a test that takes over 30 seconds it’s also slow. Builds are Slower Than This Dude I’m fully aware that many ...

Read More »

How to convert Array to List in Java

Hello Friends, In this tutorial, we will learn, various ways in which we can convert an array to a List. package com.blogspot.javasolutionsguide; import com.google.common.collect.Lists; import org.apache.commons.collections4.CollectionUtils; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream; import java.util.stream.Stream; public class ArrayToList { public static void main(String[] args) { //Before Java 8 System.out.println("Before JAVA 8........................................"); // 1. ...

Read More »