Multithreading in Java
1. Key Concepts Thread: A lightweight process with its own execution path. Concurrency: Multiple tasks making progress within the same time frame. Parallelism: Tasks running simultaneously on multiple processors. 2.…
1. Key Concepts Thread: A lightweight process with its own execution path. Concurrency: Multiple tasks making progress within the same time frame. Parallelism: Tasks running simultaneously on multiple processors. 2.…
Here’s a list of key features from Java 8 to Java 17 along with code examples for each feature. Java 8 (March 2014) Lambda ExpressionsLambda expressions enable you to pass…
Streams in Java 8 provide a powerful way to work with sequences of data in a declarative and functional style. Below is a comprehensive cheat sheet that covers key concepts,…
Java Garbage Collection (GC) Cheatsheet Garbage Collection (GC) in Java is an automatic memory management process that helps reclaim memory used by objects that are no longer referenced. The JVM…
Here’s a quick cheat sheet on JVM internals, highlighting key concepts and components that are useful for understanding how the JVM works under the hood: 1. Java Virtual Machine Overview…
Types Serial GC Parellel GC G1 GC- Available from Java 8+ Shenandoah GC - Available from Java 11+ Zero GC - ZGC - Available from Java 17+ ZGC Generational -…