Scrivio Interview library
ConceptFoundations6 min read · updated 12 November 2026

Explain in one or two sentences each what Projects Amber, Loom, Valhalla, Panama and Leyden aim to do, and name one delivered result of each where one exists.

Amber delivers smaller language productivity features, such as records, sealed classes, pattern matching, switch expressions and text blocks. Loom brings lightweight concurrency, delivered as virtual threads in Java 21, with structured concurrency and scoped values following. Valhalla works on value classes and better generics for flat, dense memory layouts and is still in preview and early-access work; Panama connects Java to native code and data, delivered as the Foreign Function and Memory API in Java 22, with the Vector API still incubating; and Leyden improves startup and warm-up, delivered as AOT class loading, linking and profiling in recent JDKs.

Why this question is asked

Much of what is new in modern Java comes from a handful of long-running OpenJDK projects. Knowing them helps us read release notes, understand why a feature looks the way it does, and judge what is coming. Interviewers ask this to check that we can place features in context instead of listing them. In this answer, we will recap what an OpenJDK project is, then go through each of the five projects: what problem it attacks, what it has delivered, and what is still in progress.

1A Quick Recap of OpenJDK Projects

OpenJDK, the open source community that builds Java, organises large efforts into projects. A project has a goal, a mailing list, a code repository and often early-access builds where its work can be tried. When part of the work is ready, it is proposed as one or more JEPs (JDK Enhancement Proposals) and delivered into a normal Java release, often first as a preview or incubator feature and later as final.

So a project is not a release. It is a long-running stream of work that delivers pieces over many releases. The five in this question are the most visible ones today.

Five OpenJDK projects at a glance
ProjectAims toDelivered so far (check your version)
AmberMake the language more concisevar, text blocks, records, sealed, patterns, switch expressions
LoomLightweight concurrencyVirtual threads (21), scoped values (final in 25)
ValhallaValue classes, flat memory, better genericsPreview and early-access work; not final yet
PanamaNative code and data interopFFM API (final in 22); Vector API incubating
LeydenFaster startup and warm-upAOT class loading, linking and profiling (24, 25)

2Amber: Small Language Features That Add Up

Amber delivers smaller, productivity-oriented language features, one at a time. Most of what makes modern Java feel less verbose came from it: local variable type inference with var (Java 10), switch expressions (14), text blocks (15), records (16), sealed classes (17), and pattern matching for instanceof (16), for switch and record patterns (21). More recent results include unnamed variables (22) and, in Java 25, compact source files with instance main methods, module import declarations and flexible constructor bodies.

The features are designed to work together. Records model data, sealed interfaces say which types exist, and pattern matching in switch handles each type, with the compiler checking we covered them all.

Java
sealed interface Shape permits Circle, Square {}
record Circle(double r) implements Shape {}
record Square(double side) implements Shape {}
static double area(Shape s) {
return switch (s) { // no default needed: the switch is exhaustive
case Circle(double r) -> Math.PI * r * r;
case Square(double side) -> side * side;
};
}
area(new Square(3)); // 9.0

3Loom: Virtual Threads and Friends

Loom attacks the cost of threads. A platform thread is a wrapper around an operating system thread, which is expensive, so servers could only have a few thousand. A virtual thread is managed by the JVM and is cheap: when it blocks on I/O, the JVM parks it and frees the underlying carrier thread for other work. That lets us write simple blocking code, one thread per request, at a scale that used to need reactive frameworks.

Virtual threads became final in Java 21. Two companions followed. Scoped values, a safer and cheaper alternative to ThreadLocal for passing context down a call, became final in Java 25. Structured concurrency, which treats a group of related subtasks as one unit with shared cancellation, is still a preview in 25.

Java
try (var exec = Executors.newVirtualThreadPerTaskExecutor()) {
for (int i = 0; i < 10_000; i++) {
exec.submit(() -> { Thread.sleep(1000); return 1; }); // 10,000 blocking tasks
}
} // finishes in about one second, without 10,000 OS threads

4Valhalla: Value Classes and Flat Memory

Valhalla is the longest-running of the five, more than ten years. Today every object in Java has an identity: two objects with the same fields are still different objects, and an array of objects is really an array of pointers to objects scattered around the heap. That costs memory and makes the processor wait for memory reads. Valhalla introduces value classes, classes whose instances have no identity, so the JVM is free to store them flat, directly inside arrays and other objects, like primitives.

Its other aim is to heal the split between primitives and objects in generics, so that a List of a value type does not need boxing. Valhalla's work has appeared as early-access builds and preview JEPs for value classes and objects; check your version for its current status. It has not delivered a final feature at the time of Java 25.

5Panama: Native Code and Data

Panama connects Java with native code and native memory. Its main result is the Foreign Function and Memory (FFM) API, final in Java 22. It lets us call a C function and work with memory outside the Java heap, without writing JNI glue code in C, and with safety checks: memory segments have bounds and lifetimes managed by arenas. A companion tool, jextract, generates Java bindings from C header files.

Panama's second result is the Vector API, which lets us write SIMD code, one instruction working on several values at once, in portable Java. It has been incubating for many releases, partly waiting for Valhalla's value classes, so it still lives in the jdk.incubator.vector module.

6Leyden: Faster Startup and Warm-Up

Leyden aims to improve startup time, time to peak performance and footprint, without giving up the dynamic nature of the JVM. Its approach is to shift some work from every run to an earlier training run: the JVM records what the application loads and how it behaves, stores that in an AOT cache (ahead-of-time cache), and reuses it on later starts.

Its first results are in recent JDKs: AOT class loading and linking in Java 24, and in Java 25 a simpler command line to create the cache and AOT method profiling, which helps the JIT reach peak speed sooner. More work, such as storing compiled code, is in progress; check your version for exactly which flags and features you have.

Text
# Java 25: a training run writes the cache, later runs use it
java -XX:AOTCacheOutput=app.aot -jar app.jar # run a representative workload, then stop
java -XX:AOTCache=app.aot -jar app.jar # starts faster, warms up sooner

7Follow-up questions

Which of these projects matters most for a typical Spring service today?

Loom and Leyden. Virtual threads let blocking Spring MVC code scale to many concurrent requests, and Spring Boot can enable them with one property. Leyden's AOT cache can cut startup time without changing the application, which helps services that scale out often.

Why has Valhalla taken so long?

Because it changes the core of the object model without breaking billions of lines of existing code, generics, serialization and libraries. Each design had to be tested against those compatibility constraints, and several were redone. Delivering it right matters more than delivering it fast.

Are Amber features available on every JVM language?

No, they are Java language features compiled by javac. Some build on JVM features, such as the class file attributes for records and sealed classes, which other languages like Kotlin can use for interoperability.

8Conclusion

In this answer, we saw that Amber delivers language productivity features such as records, sealed classes, pattern matching, switch expressions and text blocks; Loom delivers lightweight concurrency with virtual threads in 21 and scoped values in 25, with structured concurrency still in preview; Valhalla works on value classes and flat layouts and is still in preview and early-access work; Panama delivered the FFM API in 22 while the Vector API incubates; and Leyden delivers faster startup and warm-up through AOT caching in 24 and 25.

What to say in the interviewAbout 70 seconds aloud

Open with

Amber is about smaller language features that make Java more concise; it gave us var, switch expressions, text blocks, records, sealed classes and pattern matching, and in 25 things like compact source files.

Then, if they want more

Loom is about lightweight concurrency: it delivered virtual threads, final in Java 21, so blocking code can scale to huge numbers of concurrent tasks; scoped values became final in 25 and structured concurrency is still a preview.

Valhalla is the long one: value classes that have no identity, so the JVM can store them flat in arrays and objects, and better generics without boxing; it is still in early-access and preview work, so I would check the current status.

Panama is about talking to native code and memory; it delivered the Foreign Function and Memory API, final in 22, which replaces most JNI glue with safe Java code, and the Vector API for SIMD, which is still incubating.

Leyden targets startup and warm-up by doing work in a training run and storing it in an AOT cache; AOT class loading and linking came in 24 and AOT profiling in 25, with more to come.

About this answer

Last updated
12 November 2026
Versions it names
Java 25, Java 21, Java 22, Java 10
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Explain in one or two sentences each what Projects Amber, Loom, Valhalla, Panama and...": https://scrivio-interview-library.netlify.app/java/java-versions/323deed946/