Home » Java

Java

Creating a JUnit 5 ExecutionCondition

Introduction JUnit 5 has a lot of underutilized features. Developers have learned how to use JUnit 4, and they utilize the same feature set when using JUnit5. The sexy DisplayName annotation is used more and more, but the majority of the new features developers skip. In this article, I describe a particular situation I was facing and how I solved ...

Read More »

Json Patch and Json Merge Patch in Java

 Json Patch and Json Merge Patch both do one job well – a way to represent a change to a source json structure.   Json Patch does it as a series of operations which transforms a source document and Json Merge Patch represents the change as a lite version of the source document. It is easier to show these as an ...

Read More »

Kafka Record Patterns for Data Replication

java-interview-questions-answers

Imagine going down to your local milkshake bar and signing a contract with the owner so that you could purchase bespoke drinks at a set price. Let’s say you agreed on fresh milk with 3.5% fat and one tablespoon of chocolate powder, per 500ml of milk.  Putting that into a table might look like this: PKcontract_numberstartfat_contentchocolate_powder100123456782021-01-013.5%1 tbsp After a few ...

Read More »

[MEGA DEAL] The 2021 Java Bootcamp Bundle(96% off)

Develop Expertise on the Leading Programming Language & Create Actual Programs with 10 Hours of Content on Java Fundamentals, Collections, Classes, and More Hey fellow geeks, This week, on our JCG Deals store, we have another extreme offer.We are offering a massive 96% off on The 2021 Java Bootcamp Bundle. Get it now with only $35,99 instead of the original ...

Read More »

Supporting bulk operations in REST APIs

java-interview-questions-answers

Bulk (or batch) operations are used to perform an action on more than one resource in single request. This can help reduce networking overhead. For network performance it is usually better to make fewer requests instead of more requests with less data. However, before adding support for bulk operations you should think twice if this feature is really needed. Often ...

Read More »

Java 8 Parallel Streams – Custom Thread Pools Examples

A brief intro to custom thread pools and their use in Java 8 parallel streams. Examples on how to use custom pools with the Parallel streams API which avoids common thread pool usage. 1. Introduction In this tutorial, You’ll learn how to create custom thread pools in Java 8 for bulk data processing with parallel streams powerful API. Parallel Stream ...

Read More »

Java 8 – How To Read A File?

A quick guide on how to read the file in older java and new JDK 8 version with example programs. 1. Overview In this tutorial, We’ll learn how to read a file line by line in java and print the files content onto console with example program. First, let us use the older java version for example demonstration and next ...

Read More »