Category: Java


  • Prerequisites for Java Streams To effectively utilize Java streams, you should have a solid understanding of **Java 8** fundamentals, including **lambda expressions** and **method references**. Additionally, familiarity with **functional programming** concepts is essential. You should also have **Java Development Kit (JDK) 8** or later installed on your system. The **Java Stream API** is built around…

  • When you have 200 concurrent users hitting a single-threaded service, you’ll see the connection pool exhaustion, leading to a java.sql.SQLException: Connection is closed error. This is because the default connection pool size is not sufficient to handle the load. To solve this, you need to increase the connection pool size or implement a more efficient…

  • Prerequisites for Working with Sequenced Collections Java 21 introduces a new feature called **sequenced collections**, which allows developers to create collections that maintain a specific order. To work with sequenced collections, you need to have a good understanding of Java 21 basics, including the Java 21 Language Model and the java.util package. The java.util package…

  • Prerequisites for Java 17 Migration To begin the migration process from Java 8 to Java 17, you need to have the **JDK 17** installed on your system. The JDK includes the **Java Runtime Environment (JRE)**, **Java Development Kit (JDK)**, and other tools necessary for Java development. You can download the JDK from the official Oracle…

  • When you have 200 concurrent users hitting a single-threaded service, you’ll see the importance of efficient string handling. Without text blocks, you’re likely to encounter issues with string concatenation, leading to performance bottlenecks and potential errors. TL;DR: In this tutorial, you’ll learn how to use Java 17 text blocks and multiline strings to improve code…