SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

CONCURRENCY / NOTES</>↗
Concurrency13 Apr 2025

How do I create a thread pool with Executors in Java?

In Java, the java.util.concurrent.Executors class provides factory methods for creating and managing thread pools easily. Below are common ways to create a thread pool using Executors: 1. Fixed Thread Pool A fixed thread pool contains a fixed number of threads. This is useful when you have a specific number of tasks to manage and want […]

Wayan · 4 min read
CONCURRENCY / NOTES</>↗
Concurrency13 Apr 2025

How do I use ExecutorService to run tasks in Java?

In Java, the ExecutorService interface is part of the java.util.concurrent package and provides a higher-level replacement for managing threads and tasks. It simplifies the execution of tasks in a multithreaded environment by abstracting thread creation and management. Here’s how you can use ExecutorService to run tasks in Java: 1. Creating an ExecutorService You can create […]

Wayan · 3 min read
SERVLET / NOTES</>↗
Servlet12 Apr 2025

How do I manage sessions using HttpSession in Jakarta Servlets?

Managing sessions using HttpSession in Jakarta Servlets is a straightforward process. HttpSession is a part of the Jakarta Servlet API which provides a way to handle session management between a client and server during multiple requests. Here’s a structured guide on using and managing sessions with HttpSession: 1. Introduction to HttpSession The HttpSession interface is […]

Wayan · 5 min read
SERVLET / NOTES</>↗
Servlet12 Apr 2025

How do I read request parameters using HttpServletRequest?

In a Jakarta EE (or formerly Java EE) web application, you can use the HttpServletRequest object to read request parameters sent by a client (e.g., from a form, URL query string, or other mechanisms). Below are the common ways to read the parameters: 1. Using getParameter(String name) This method is used when you need to […]

Wayan · 4 min read
SERVLET / NOTES</>↗
Servlet11 Apr 2025

How do I handle GET and POST requests in Jakarta Servlets?

Handling GET and POST requests in Jakarta Servlets involves overriding the doGet() and doPost() methods provided by the HttpServlet class. Here’s a step-by-step guide: 1. Import Necessary Packages First, ensure you import the jakarta.servlet and jakarta.servlet.http packages in your servlet class. import jakarta.servlet.ServletException; import jakarta.servlet.annotation.WebServlet; import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServletRequest; impor...

Wayan · 4 min read
SERVLET / NOTES</>↗
Servlet11 Apr 2025

How do I deploy a WAR file in Tomcat Servlet Container?

In this post I will show you the step-by-step instructions to deploy a WAR file in Tomcat 11: 1. Build Your WAR File A WAR file (.war) is a packaged web application. To build it: If you’re using Maven, run the following command in your project directory: mvn clean package This generates a WAR file […]

Wayan · 3 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.