Spark developers should use Java 8 for Spark 2 projects and Java 11 for Spark 3 projects for example. Running multiple Java versions is important for Android and Apache Spark developers. It also makes it easy to seamlessly switch between Java versions when you switch projects. Jenv makes it easy to run multiple versions of Java on a Mac computer.