0% found this document useful (0 votes)
7 views2 pages

A

Uploaded by

tonnybraxton64
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

A

Uploaded by

tonnybraxton64
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

History of Java

1. Inception and Early Days:

o In June 1991, James Gosling and his team at Sun Microsystems embarked on
creating a new language. Initially called Oak, it aimed to enable communication
among consumer electronic devices.

o However, the focus shifted to a new niche: the World Wide Web. The team
recognized the potential of Oak for web programming.

2. The Birth of Java:

o In May 1995, Sun Microsystems officially released Java as a core component of its
Java platform.

o The language was designed with the vision of “write once, run anywhere” (WORA).
This meant that compiled Java code could run on any platform supporting Java
without recompilation.

3. Key Milestones:

o 1995: Java’s debut release.

o 1996: JDBC (Java Database Connectivity) introduced, revolutionizing database


access.

o 1998: Java 2 (J2SE) brought significant enhancements.

o 2004: Java 5 (J2SE 5.0) introduced generics, metadata, and other features.

o 2014: Java 8 arrived with lambdas and the Stream API.

o 2017: Java 9 introduced modules and the module system.

o 2021: Java 17 (LTS version) brought pattern matching and sealed classes.

4. Open Source and Community Involvement:

o Sun Microsystems relicensed most Java technologies under the GPL-2.0-only


license in compliance with the Java Community Process.

o OpenJDK became the default JVM (Java Virtual Machine) for most developers and
Linux distributions.

5. Popularity and Decline:

o Java gained immense popularity after its release and remained a top programming
language.

o As of 2022, it was the third most popular language on GitHub.

o However, in recent years, other languages using the JVM have gained traction,
leading to a gradual decline in Java’s use.

Anatomy of Java?

1. Documentation Section:
o Optional but valuable.

o Contains basic information about the program (author, creation date, version,
description).

o Written using comments (single-line, multi-line, or documentation comments).

2. Package Declaration:

o Optional but recommended.

o Specifies the package (directory) where the class resides.

o Must appear after the documentation section.

o Helps organize classes and avoids naming conflicts.

3. Import Statements:

o Used to access classes from other packages.

o Placed after the package declaration.

o Allows you to import specific classes or all classes from a package.

4. Class Definition:

o The core structure of any Java program.

o Contains methods (functions) and variables.

o Methods and variables exist within a class or an object (instance of a class).

Discuss other datatypes apart from primitive datatypes

Reference Types:

 Non-primitive data types are often called reference types because they refer to objects.

Nullability:

A primitive type always has a value (even if it’s the default value like 0 or false).

Method Invocation:

 Non-primitive types can be used to call methods and perform operations.

Naming Convention:

 Primitive types start with a lowercase letter (e.g., int, boolean).

You might also like