Java / GraalVM Interview questions
What are the main components of GraalVM?
GraalVM is made up of a handful of distinct pieces that work together rather than one monolithic tool.
| Component | Role |
| Graal compiler | JIT/AOT compiler written in Java, plugs into HotSpot as a replacement for C2 |
| Truffle | Framework for building fast language interpreters (JS, Python, Ruby, R, WASM) |
| Substrate VM | Minimal runtime (GC, thread scheduling) used inside native executables |
| Native Image | Ahead-of-time compiler that turns a JVM app into a standalone binary |
| gu (updater) | Command-line tool to install/remove optional GraalVM components |
These pieces are modular - you can use just the Graal JIT on a normal JVM, or pull in Truffle and Native Image only when you need polyglot execution or a compiled binary.
More Related questions...