Here’s a quick way how to find which Java version you are running.

<pre lang="bash">
which java
java -version