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</>↗
Concurrency03 May 2025

How do I use BlockingQueue to pass data between threads?

To use a BlockingQueue to pass data between threads in Java, you can follow these steps: 1. Understand BlockingQueue BlockingQueue is part of the java.util.concurrent package and is designed for thread-safe communication between producer and consumer threads. It provides methods such as put() and take(), which handle blocking behavior: put(E e): Blocks if the queue […]

Wayan · 4 min read
CONCURRENCY / NOTES</>↗
Concurrency03 May 2025

How do I gracefully shut down an ExecutorService?

To gracefully shut down an ExecutorService in Java, you should follow these steps: Call shutdown(): This will prevent the ExecutorService from accepting any new tasks while allowing already submitted tasks to be completed. Wait for Termination: You can use awaitTermination(long timeout, TimeUnit unit) to wait for a specified amount of time for all tasks to […]

Wayan · 3 min read
JSCH / NOTES</>↗
JSch02 May 2025

How do I set up port forwarding using JSch?

Port forwarding is a technique commonly used to access remote services, such as databases or web applications, via SSH. Using Java, you can achieve this by leveraging the JSch (Java Secure Channel) library. Below, you’ll find a step-by-step guide to setting up port forwarding. 1. Understanding Port Forwarding with JSch Port forwarding allows you to […]

Wayan · 5 min read
CONCURRENCY / NOTES</>↗
Concurrency02 May 2025

How do I submit multiple tasks and get results using invokeAll?

To submit multiple tasks and get results using invokeAll in Java, you can make use of the ExecutorService. The invokeAll method submits a collection of Callable tasks to the executor and waits for all of them to complete. Once completed, it returns a list of Future objects, each representing the result of a corresponding task. […]

Wayan · 3 min read
SPRING CORE / NOTES</>↗
Spring Core02 May 2025

How do I understand IoC and DI in the Spring Framework?

Understanding Inversion of Control (IoC) and Dependency Injection (DI) in the Spring Framework can seem tricky at first, but it becomes intuitive when approached step by step. Here is a simplified explanation: 1. Inversion of Control (IoC) IoC is a principle in software design where the control of creating and managing objects is transferred (inverted) […]

Wayan · 5 min read
JAVA 10 / NOTES</>↗
Java 1002 May 2025

How to monitor memory with Java 10’s improved GC interface

Java 10 introduced enhancements to the Garbage Collection (GC) interface through the JEP 304: GC Interface, which abstracts garbage-collection implementations to improve integration and monitoring capabilities. While these improvements primarily simplify the addition of new garbage collectors to the JVM, they can also be leveraged to monitor memory usage and GC behavior in real time. […]

Wayan · 4 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.