Mailing the story:
Verify JAVA Installation on Ubuntu and Check the Installed version (if any)
This article describes how you can easily check your installed Java version on your Ubuntu system. We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system.