When developing for the android platform we can create two versions for the same layout xml document and keep them separately within ‘layout’ and ‘layout-land’ folders. When the android platform executes our application it will automatically use the correct version in according with the display orientation. The following video clip shows that.

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.