How to Install Java Runtime Environment (JRE) in Ubuntu 10.10 (Maverick) using PPA

Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution.