I have recently prepared a code sample that assists with the understanding of the android activities life cycle. The following video clip explains its execution.

Stable Values in Java (JEP 502): Deferred Immutability with JVM Trust
Explore Stable Values – a new Java 25 upcoming feature (JEP 502) enabling lazy initialization with immutable performance and JVM-level optimizations.