Quantcast
Channel: Java Archives - Java Code Geeks
Browsing all 745 articles
Browse latest View live

Apache Kafka GroupId vs ConsumerId vs ClientId

Apache Kafka’s consumer groups are a powerful feature that enables parallel processing of messages from topics. When working with Kafka consumers and managing group subscriptions, it’s essential to...

View Article


Feign vs. RestTemplate: Picking Your Spring Client

Building microservices with Spring? When it comes to interacting with other services’ APIs, you have two popular choices: Feign and RestTemplate. Both are powerful tools, but they cater to different...

View Article


Find the Largest Prime Under a Given Number in Java

In computer science, checking whether a number is prime and finding prime numbers are fundamental tasks. This article explores two effective methods in Java to determine the largest prime number less...

View Article

Counting the Number of Unique Digits in an Integer in Java

Counting the number of unique digits in an integer is an interesting problem that involves analyzing the individual digits of a number and determining how many of them are distinct. This article will...

View Article

Utf8 Encoding in Eclipse

Eclipse stands out as a widely embraced integrated development environment (IDE) catering to multiple programming languages. It offers cross-platform functionality, is freely accessible, and...

View Article


Modifying and Printing List Items Using Java Streams

Lists are fundamental building blocks in Java, holding collections of objects. A task could involve modifying the elements of a list and then printing the modified results. This article explores...

View Article

Install OpenJDK on Linux, macOS, Windows

The Oracle JDK is available for free download and personal use, but it now imposes strict licensing terms for commercial or shared usage. In such cases, it’s recommended to opt for OpenJDK. Though...

View Article

Using Query Hints in Spring Data JPA

Spring Data JPA offers a tool for fine-tuning database interactions: Query Hints. These hints are subtle suggestions to the underlying persistence provider, influencing its decision-making during query...

View Article


Micronaut Java API versioning

Micronaut is a modern JVM-based framework designed for building lightweight, modular, and highly efficient applications. It offers features like dependency injection, AOP, and built-in support for...

View Article


Create, Extract Jar Files on Linux, MacOS, and Windows

JAR (Java ARchive) files serve as the standard and portable means to consolidate all components of a Java application into a compact package, facilitating distribution and installation. Within a JAR...

View Article

Spring Boot Transaction-Aware Caching Example

Caching stands as a crucial technique in application development, enhancing performance and alleviating strain on databases and other resources. Within the Spring Framework, leveraging...

View Article

Configuring the GlassFish Server in Eclipse

GlassFish Server is an open-source application server designed to facilitate the development and deployment of Java Enterprise applications. Additionally, it offers comprehensive support for web...

View Article

Customize Event Handlers & Listeners in a Netty Chat Room Application

Netty is a framework for building high-performance, scalable network applications in Java. One of its key features is its event-driven architecture, which allows us to handle network events...

View Article


Top Java Profilers for 2024

Java continues to reign supreme in enterprise development, but even the most robust applications can suffer from performance slowdowns. In today’s fast-paced digital world, identifying and eliminating...

View Article

Exploring Spring Boot Native Executables

Have you ever used Spring Boot to build applications? It’s a fantastic way to get things up and running quickly. But what if you could make those applications even faster and lighter? That’s where...

View Article


Introduction to JFreeChart

Data visualization is a powerful tool for understanding and communicating information. Whether illustrating comparisons or highlighting patterns, having the right charting tools can make a significant...

View Article

Generating the Juggler Sequence in Java

The Juggler sequence is a mathematical sequence defined for a given non-negative integer a0​. This sequence is generated by repeatedly applying a specific formula until we reach 1. In this article, we...

View Article


How to Run a CommandLineRunner Bean Conditionally in Spring Boot

CommandLineRunner in Spring is an interface allowing the execution of code when an application starts. It provides a callback method run(String... args) where you can place your startup logic. This is...

View Article

Java 22: What’s New?

Java 22, released in March 2024, brings a set of enhancements aimed at improving developer experience, code readability, and performance. There are 12 key features, including a mix of final additions...

View Article

The Future is Now: Must-Know PHP Trends Shaping 2024

Hey there, PHP enthusiasts! Buckle up, because 2024 is shaping up to be a fantastic year for our favorite language. Whether you’re a seasoned pro or just starting your PHP journey, there are exciting...

View Article
Browsing all 745 articles
Browse latest View live