Java
Java
Java
● James Gosling, often called the "Father of Java," along with a team of engineers,
created Java at Sun Microsystems.
● Java's development started in 1991, and the first official release (Java 1.0) was in 1995.
● Java was originally called Oak, named after an oak tree outside James Gosling’s office.
It was later renamed Java, inspired by Java coffee, reflecting its simplicity and
productivity.
Features of Java
1. Platform Independence: "Write once, run anywhere" (WORA) capability, thanks to the
Java Virtual Machine (JVM).
2. Object-Oriented: Follows OOP principles like inheritance, encapsulation, and
polymorphism.
3. Robust: Strong memory management, exception handling, and garbage collection make
it reliable.
4. Secure: Provides built-in security features like bytecode verification and a secure
runtime environment.
5. Multithreaded: Supports concurrent programming with built-in multithreading.
6. Portable: Java programs can run on any platform without requiring platform-specific
modifications.
7. High Performance: Just-In-Time (JIT) compiler improves performance.
8. Dynamic: Adapts to evolving environments by linking code at runtime.
● The main goal was to develop a programming language that could be used for
consumer electronics, like TVs and VCRs.
● It needed to be portable and secure for use in a distributed environment.
● Java aimed to provide simplicity, robustness, and platform independence.
1. Classes and Objects: Code is structured around real-world entities, modeled as
classes.
2. Encapsulation: Bundles data (fields) and methods into a single unit, protecting object
states.
3. Inheritance: Enables classes to inherit properties and methods from other classes,
promoting code reusability.
4. Polymorphism: Allows methods to perform differently based on the context, providing
flexibility.
5. Abstraction: Focuses on essential features while hiding implementation details.