Page 3
The main() method in a Java application
The main() method is the entry point of a standard Java application. The JVM uses the main() method to execute a Java program. Typically, we would write the complete code for the main() method as follows:
|
1 2 3 4 5 6 7 8 |
package com.huongdanjava.java; public class Application { public static void main(String[] args) { } } |
The keyword public is an access modifier, meaning… Read More
Join() methods in String for Apache Kafka Streams
The join() methods in Spring for Apache Kafka Streams are inner joins, used to join messages with the same key published to two Apache Kafka topics. For example, if you have two topics, customers and orders, to join messages with the same key in these… Read More
Apache Kafka Streams join() Explained | Window Joins & Grace Period
Scoped Value in Java 25 Explained | Real-World Examples
Upgrade OpenAPI Generator Maven Plugin from Spring Boot 3 to Spring Boot 4
What is a Package in Java? | Why We Need Packages Explained
KTable in Spring for Apache Kafka Streams
In the previous tutorial, I introduced you to Spring for Apache Kafka and Apache Kafka Streams. I also showed you how to use the KStream class to consume and apply some operations to stream messages. Besides the KStream class, Spring for Apache Kafka Streams also… Read More
Introduction to Spring for Apache Kafka Stream
A stream in Apache Kafka is an unlimited sequence of messages continuously sent to an Apache Kafka topic. If you use the standard Spring for Apache Kafka library, you can easily subscribe and receive these messages. However, if you want to apply more operations to… Read More