Java / GraalVM Interview questions
How do you install GraalVM using SDKMAN?
SDKMAN is the most common way developers manage multiple GraalVM versions alongside other JDKs on macOS and Linux.
sdk install java 21.0.2-graalce sdk use java 21.0.2-graalce java -version
The candidate identifier suffix tells SDKMAN which distribution to fetch - -graalce pulls GraalVM Community Edition, while other suffixes fetch Oracle GraalVM, Liberica NIK, or Mandrel builds depending on what's published for that Java version.
Once installed, sdk use switches the active JDK for the current shell session, and sdk default makes the switch persistent, so you can keep a regular JDK for most work and swap into GraalVM only when building a native image.
More Related questions...