Java
-
Helidon 3.0 Introduces Project Starter and Requires Java 17 and Jakarta EE 9.1
Oracle has released Project Helidon 3.0, featuring support for JDK 17, Jakarta EE 9.1, and MicroProfile 5.0. Also included in this release is the...
-
Article: Moving Kafka and Debezium to Kubernetes Using Strimzi - the GitOps Way
Deploying an Apache Kafka cluster to a Kubernetes is not an easy task. There are a lot of pieces to configure like the zookeeper, the Kafka...
-
Introducing Spring Boot Migrator
Spring Boot Migrator (SBM) is an experimental Spring project first released in March 2022. SBM allows developers to convert existing, non Spring...
-
Jakarta EE 10 Delivers New Core Profile and Updates to Specifications
Jakarta EE 10, released on September 22, 2022, is the third major, and fourth overall, release of Jakarta EE by the Jakarta EE Working Group...
-
Java News Roundup: JDK 19 and Jakarta EE 10 Released, String Templates, Payara Platform
This week's Java roundup for September 19th, 2022, features news from OpenJDK, JDK 19, JDK 20, Amazon Corretto 19, BellSoft Liberica JDK 19,...
-
Article: Virtual Threads: New Foundations for High-Scale Java Applications
Virtual threads are a lightweight implementation of Java threads, delivered as a preview feature in Java 19. They dramatically reduce the effort...
-
Java String Tutorial
Java String class examples. Learn to create strings, methods, comparisons, formatting and various conversions with simple and easy to follow Java...
-
How to Find a File in Directory in Java
Learn to find a file by name in a given directory and its sub-directories in Java and search up to a configured depth of sub-directories with...
-
Java 8 Collectors groupingBy Examples
Learn to use Collectors.groupingBy() method to group and aggregate the Stream elements similar to ‘GROUP BY‘ clause in the SQL. 1....
-
Read a File from AWS S3 using S3Client
Learn to read a text file stored in AWS S3 bucket. We will learn to read a public file or non-public file using the access/secret keys. The post...
-
TypeScript/JavaScript – How to Find Element in Array
Learn how to find an element in an array using inbuilt methods or write custom logic using examples in JavaScript or TypeScript. The post...
-
Log4j2 Dynamic ThresholdFilter Example
Learn to configure log4j2 DynamicThresholdFilter and how to match thresholds and write the filtered messages using various combinations. The...
-
Log4j2 – Filter Messages using MarkerFilter
Learn to filter the logging messages or events using the Log4j2 MarkerFilter, create instances, and configure them in log4j2.xml. The post...
-
Attach and Detach from a Docker Container
This Docker tutorial discusses the different container modes and how to attach and detach from a running container using child commands. The...
-
Java – Convert a Map to Array, List or Set
Learn to convert Map keys and values to the array, List or Set using the ArrayList and HashSet constructors as well as Stream APIs. The post...
-
[Solved] “Stream has already been operated upon or closed” Exception
Learned the root cause and solution of the Java Stream exception "IllegalStateException: stream has already been operated upon or closed". The...
-
Java – How to Handle InterruptedException
Learn InterruptedException and when it is thrown with examples. We will also see how we can handle this exception in our code. The post Java...
-
Java Semaphore vs ReentrantLock
Learn what a Semaphore and a Reentrant Lock are along with practical examples. We will also explore some of the main differences between the two...
-
Remove All Occurrences of Element from a List
Learn to remove all the occurrences of an element from a given List using Java loops, list methods and Stream API. The post Remove All...
-
How to Flatten a Nested List in Java
Flattening a nested list may seem hard at the beginning, but it's not. It can be easily done using only plain Java, streams, or external...
-
Java Interview Guides
These articles will help you prepare for the next interview with more confidence. We have tried to put as much reasoning as possible in each...
-
Object Oriented Programming Tutorials
Object-oriented programming (OOP) is a programming model that organizes software design around data or objects. Learn how Java supports OOP. The...
-
Caffeine Cache with Spring Boot
Learn about Caffeine Cache and how we can use Caffeine with Spring Boot. Learn to configure caching, add and evict cache entries with example...
-
Convert List to Map in Java
Learn to convert a List to a Map in Java using Streams, Commons collections, and Guava including Multimap class for duplicate list items. The...
-
How to Iterate Over a Stream With Indices
Java Streams have gained a lot of awareness and being able to iterate through with indices can be helpful. Learn a few ways with examples. The...