Nearby lessons
2 of 125Java - History of Java
📌 What You Will Learn
- What Java is and why it is so popular
- The history and different versions of Java
- The important features of Java
- How Java is platform independent (Write Once, Run Anywhere)
- The difference between JDK, JRE and JVM
- How Java is different from C and C++
History of Java is a core concept of the Java language. This lesson explains Short History of Java and Java Versions at a Glance with complete, runnable code examples, clear step-by-step explanations, and common mistakes to avoid with exam-style MCQs at the end.
Short History of Java
- 1991 — Work starts on a project called Green for small electronic devices.
- 1995 — Java is introduced to the public (first name given was Oak, changed later to Java).
- 23 January 1996 — First version JDK 1.0 is released.
- 2004 — Java 5 brings very big changes: autoboxing, generics, annotations, enhanced for-loop.
- 2014 — Java 8 brings Lambda expressions and the Stream API. This is the most loved version even today.
- 2017 onwards — Oracle changes the release system: every six months a new version comes. LTS (Long-Term Support) versions give support for many years. Java 8, 11, 17 and 21 are the important LTS versions.
Why is it called Java?
The team wanted a simple, short, and strong name. Java is the name of an island in Indonesia, famous for coffee. The original logo of Java is a steaming cup of coffee. So remember: Java = a coffee island = the language name.
Java Versions at a Glance
Java has grown version by version. Look at the table below to see how the versions developed. In this training material we also update you with the modern versions.
| Version | Year | Main additions |
|---|---|---|
| JDK 1.0 | 1996 | First public release (name: Oak) |
| JDK 1.1 | 1997 | RMI, JDBC, Reflection, inner classes |
| JDK 1.2 | 1998 | Swing, Collections Framework, strictfp |
| JDK 1.3 | 2000 | Improvements to RMI, JNDI |
| JDK 1.4 | 2002 | Regular Expressions, assert, NIO |
| Java 5 | 2004 | Generics, autoboxing, annotations, var-args, enhanced for-loop |
| Java 6 | 2006 | JDBC 4.0, better GUI support |
| Java 7 | 2011 | Strings in switch, try-with-resources, diamond operator |
| Java 8 | 2014 | Lambda, Stream API, Date/Time API (very popular) |
| Java 9 | 2017 | Modules (JPMS), JShell, private interface methods |
| Java 10 | 2018 | Local variable type inference (var) |
| Java 11 | 2018 | LTS — HttpClient, new String methods, run single file |
| Java 17 | 2021 | LTS — sealed classes, pattern matching (preview) |
| Java 21 | 2023 | Latest LTS — records, switch expressions, virtual threads |
Trainer's Note: From Java 9 onwards, Oracle releases a new Java version every six months (in March and September). Versions marked LTS (Long-Term Support) are the safe choices for companies because they get updates and security patches for many years. The important LTS versions are 8, 11, 17 and 21.
📝 Key Takeaways
- Java is a simple, secure, object-oriented programming language created by James Gosling at Sun Microsystems (now Oracle).
- Write Once, Run Anywhere (WORA): source code (.java) is compiled to bytecode (.class), and every JVM runs that same bytecode.
- JDK > JRE > JVM. JDK is for developers, JRE is for running, JVM executes bytecode.
- Important versions: Java 8 (LTS), Java 11 (LTS), Java 17 (LTS), Java 21 (LTS).
- Java is different from C/C++ because it has no pointers, automatic memory management, and is platform independent.
🧠 Test Your Knowledge
2 QuestionsProgress: 0 / 2