I would like to install java to learn to program in java and develop web and android apps. I'm running on Ubuntu 18.04 LTS (which doesn't come with java pre-installed). I have seen that there a number of possibilities: OpenJDK, Apache JDK, and each with different versions of Java.
Which one would you recommend to install given my specifications, and which commands do I need to issue to the terminal?