← Back to Chapters

History of Java

☕ History of Java

? Quick Overview

Java is a high-level, object-oriented programming language developed to be portable, secure, and easy to use. It follows the principle "Write Once, Run Anywhere", meaning Java programs can run on any system that has a Java Virtual Machine (JVM).

? Key Concepts

  • Java was created by James Gosling
  • Originally developed at Sun Microsystems
  • First released in 1995
  • Platform-independent language
  • Uses JVM for execution

? Syntax / Theory

Initially, Java was designed for embedded systems and interactive television. The project was named Green, and the language was first called Oak, named after an oak tree outside Gosling's office. Later, it was renamed Java, inspired by Java coffee.

? Code Example

? View Code Example
// This is the first basic Java program demonstrating history example
class HistoryDemo {
public static void main(String[] args) {
System.out.println("Java was released in 1995");
}
}

? Live Output / Explanation

Output

The program prints a simple message showing Java’s first release year. This demonstrates how Java programs start execution from the main() method.

? Tips & Best Practices

  • Always remember Java is platform-independent due to JVM
  • Java syntax is similar to C and C++
  • Use proper class and method naming conventions

? Try It Yourself

  • Write a program that prints Java creator name
  • Modify the output message with current Java version
  • Research and note important Java versions