Java was started in June 1991 by James Gosling as a project called "Oak". The main goal of Gosling to implement a virtual machine and a language that had a familiar C-like notation but with greater uniformity and simplicity than C/C++. The first public implementation was Java 1.0 in 1995. It's main objective of "Write Once, Run Anywhere", with free runtimes on any platforms that's why it called platform independent. To develop a large web application Sun invented the J2EE and J2ME.
New versions for large and small platforms (J2EE and J2ME) soon were designed with the advent of "Java 2".
Download SDK and JRE