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

Kafka Message Acknowledgement Options

Apache Kafka is a distributed messaging system widely used for building real-time data pipelines and streaming applications. To ensure reliable message delivery, Kafka provides various message...

View Article


Optimize Spring Boot Startup Time: Tips & Techniques

Spring Boot is a popular framework for building Java applications, especially microservices. However, as applications grow in size and complexity, startup time can become a bottleneck. Long startup...

View Article


Why Calling super.super.method() is Not Allowed in Java

Java follows a strict object-oriented approach with a well-defined inheritance model. Unlike some languages that allow direct access to grandparent methods, Java restricts access to only the immediate...

View Article

Spring Unified SSL Support

With the increasing need for secure communication, SSL/TLS plays a vital role in protecting sensitive data over the network. Spring Framework has introduced unified SSL support, making it easier to...

View Article

Creating Kafka Consumers With Reactor Kafka

Reactor Kafka provides a reactive API that integrates Apache Kafka with Project Reactor, enabling developers to create non-blocking, back-pressure-aware Kafka consumers and producers. This reactive...

View Article


Show Year In Two Digits Format In Java Date

In Java, extracting the last two digits of the current year is a common requirement in date-related operations. This can be useful for formatting dates, generating year-based codes, or working with...

View Article

Building High-Performance RPC Services with gRPC and Spring Boot

In the world of microservices and distributed systems, efficient communication between services is critical. While REST and WebSockets have been popular choices for building APIs, gRPC has emerged as a...

View Article

Jackson Field Absent vs Null Difference

When working with JSON data in Java applications, distinguishing between absent fields and fields with null values is a common challenge. Jackson, one of the most popular JSON processing libraries for...

View Article


Java Sort Alphanumeric Strings Example

Sorting alphanumeric strings is a common requirement in applications where data contains both letters and numbers. Java provides built-in sorting mechanisms that can be used to sort such strings...

View Article


Java LinkedList toString() Print Example

The LinkedList class in Java is a part of the java.util package and provides a way to store ordered elements in a linked list structure. Printing a LinkedList efficiently is crucial for debugging and...

View Article

Java Switch Greater Than Or Equal Condition Example

The switch statement in Java is a control flow statement that handles multiple conditions efficiently. However, it is typically used for discrete values, such as integers or enums, rather than...

View Article

Custom Spring Boot Actuator Endpoints

Spring Boot Actuator is a powerful tool that provides production-ready features to monitor and manage your application. It comes with built-in endpoints for health checks, metrics, environment...

View Article

Comparing isA() and anyObject() Matchers in EasyMock

EasyMock is a widely used Java framework for creating mock objects in unit tests. It provides various matchers to define expected method calls with flexible argument handling. Two commonly used...

View Article


Adding a Non-Null Value to a Map in Java

When working with Java’s Map data structure, it is common to check whether a value is null before inserting it into the map. This helps prevent unnecessary null entries that might cause issues later....

View Article

Spring Cloud Microservices: Service Discovery and Tracing

Microservices architecture has become a popular approach for building scalable and maintainable applications. Spring Cloud provides a suite of tools to simplify the development of microservices,...

View Article


Java Unleash Feature Flags Example

Feature flags, also known as feature toggles, are a powerful technique in software development that allows you to enable or disable features dynamically without deploying new code. This approach is...

View Article

Java JDBC Execute Multiple Statements Example

When working with databases in Java, it’s common to execute multiple SQL statements in a single execution. This improves efficiency and reduces the number of database round trips. JDBC provides several...

View Article


Java ServerSocket Simple HTTP Server Example

An HTTP server is responsible for serving resources to a requesting client. While Java offers several production-grade web servers, understanding the inner workings of an HTTP server can be achieved by...

View Article

IntelliJ IDEA Include External JAR Example

1. Introduction IntelliJ IDEA is an integrated development environment (IDE) developed by JetBrains. Including external JAR is essential for various reasons as the project may access external libraries...

View Article

Java Micronaut in Docker: A Guide with Maven and Jib

Micronaut is a modern, JVM-based framework designed for building microservices and serverless applications. It’s known for its low memory footprint, fast startup time, and compile-time dependency...

View Article
Browsing all 745 articles
Browse latest View live