How to install Oracle JRE on Fedora 20 and use alternatives to switch between it and OpenJDK

I found that both versions of Java (JRE) can live happily on the same machine by the use of the alternatives system, which is what this post is all about: How to install and use Oracle JRE on a Fedora machine that has OpenJDK JRE already installed.