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.

KOTLIN / NOTES</>↗
Kotlin19 Jun 2026

How do I create a class and an object in Kotlin?

In Kotlin, you create a class with the class keyword, and you create an object instance by calling the class constructor. class Person { var name: String = "Unknown" var age: Int = 0 } fun main() { val person = Person() person.name = "Alice" person.age = 25 println("${person.name} is ${person.age} years old") } Output: […]

Wayan · 1 min read
BASIC / NOTES</>↗
Basic17 Jun 2026

Java Class File Format Versions

A compiled Java .class file starts with a fixed header (0xCAFEBABE), followed by a pair of numbers: minor_version and major_version. The pair (commonly written as major.minor, e.g., 52.0) identifies which Java platform level the bytecode targets. The JVM uses this to decide whether it can load the class. If the class was compiled for a […]

Wayan · 3 min read
SPRING BOOT / NOTES</>↗
Spring Boot03 Apr 2026

How to Use Virtual Threads in Java (Project Loom) with Spring Boot

Virtual threads are one of the most exciting additions to modern Java. They make it much easier to write highly concurrent applications without the complexity of managing large thread pools, callbacks, or reactive pipelines. If you build applications with Spring Boot, virtual threads can help your app handle many more concurrent tasks with simpler code. […]

Wayan · 9 min read
JDBC / NOTES</>↗
JDBC01 Apr 2026

How do I use ResultSetMetaData to inspect results?

ResultSetMetaData lets you inspect the shape of a SQL query result at runtime — for example: how many columns were returned each column’s name and label its SQL type table/schema info if available whether values can be null, are auto-incremented, etc. Basic usage package org.kodejava.jdbc; import java.sql.*; public class MetaDataExample { public static void main(String[] […]

Wayan · 3 min read
JDBC / NOTES</>↗
JDBC22 Mar 2026

How do I use DatabaseMetaData to inspect schema in JDBC?

You use java.sql.DatabaseMetaData by: Opening a Connection Calling conn.getMetaData() Querying catalogs/schemas/tables/columns/keys/indexes via the DatabaseMetaData “getXxx” methods (they mostly return ResultSets) Reading those result sets like normal query results Below are the most common inspection tasks and the JDBC calls that power them. 1) Get the DatabaseMetaData package org.kodejava.jdbc; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.Dr...

Wayan · 5 min read
JDBC / NOTES</>↗
JDBC26 Feb 2026

How do I handle database timeouts in JDBC?

In JDBC, “database timeouts” can mean a few different things, and you handle each at a different layer. The most practical approach is to set timeouts deliberately and then catch the right exception types so you can decide whether to retry, fail fast, or surface a user-friendly error. 1) Connection timeout (can’t connect / handshake […]

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