Fading Coder

An Old Coder’s Final Dance

Resolving `java.lang.IllegalStateException` in Logback configuration during Log4j2 migration

Understanding the Exception java.lang.IllegalStateException: Logback configuration error detected Overview This article provides a detailed exploration of the exception java.lang.IllegalStateException encountered during the initialization of a logging system in a Spring Boot project configured too u...

Understanding Code Blocks in Java

Code blocks in Java are sections of code surrrounded by curly braces {}, used to group statements logically. Depending on their placement and how they are defined, they are categorized into four types: common blocks, instance blocks, static blocks, and synchronized blocks. "1.1 Common Code Bloc...

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. For example: Object obj = new Object(); If the program faces memory shortages, rather than collecting...