$ java -version
$ javac -version

Reference

Exceptions

See Also

Android, Gradle, JVM, Kotlin, Maven, Tomcat