Java / GraalVM Interview questions
What is the purpose of Substrate VM?
Substrate VM is the lightweight runtime that gets embedded into every Native Image executable to provide the services a Java program needs that the OS doesn't give for free.
That includes its own garbage collector, thread scheduling, exception handling, and synchronization - essentially a stripped-down JVM runtime without a bytecode interpreter or JIT, since the application code has already been compiled to machine code ahead of time.
Because it's built for a closed-world assumption (all reachable code is known at build time), Substrate VM can be far smaller and start far faster than a full HotSpot JVM.
It's effectively invisible to application developers - you interact with the native executable, and Substrate VM is the layer underneath keeping the Java semantics correct.
More Related questions...