I see there are a number of ways to install Java on Ubuntu... what I want to know is about which way is best for a server that is secure and running a Java web application.
The three ways I know of are:
sudo apt-get install default-jre
Or some other JRE package included in the main Ubuntu repos.
Using Webupd8 per these links:
Manually installing by downloading from Oracle's website.
I'm familiar with all of these ways to install Java and I have no trouble installing Java. But which way should I use if I want my server to be secure and I want to easily receive Java updates in the future?