0% found this document useful (0 votes)
4 views4 pages

Brief History of Java

Java was developed by Sun Microsystems in the early 1990s, with its first public release in 1995. It features platform independence, simplicity, and robustness, and includes various data types and variable declarations. The document also outlines Java's conditional statements, looping structures, and sorting algorithms.

Uploaded by

Visaya, Jorie B.
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)
4 views4 pages

Brief History of Java

Java was developed by Sun Microsystems in the early 1990s, with its first public release in 1995. It features platform independence, simplicity, and robustness, and includes various data types and variable declarations. The document also outlines Java's conditional statements, looping structures, and sorting algorithms.

Uploaded by

Visaya, Jorie B.
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/ 4

BRIEF HISTORY OF JAVA

STAR 7 – Is the first project developed using Java. It is the personal hand-held remote control.

1990 - Sun Microsystem began an internal object known as a Green Project to work on a new
technology.

1991 – Java was developed by James Gosling.

1992 – The Green Project was expanding off.

1994 - The focus of the original team was re-targeted this time by the use of internet technology.

OAK was renamed to Java after OAK has been trademarked.

1995 – Java was publicly released

1996 – Java Development Kit JDK1.0 was released.

2002 – Java Development Kit JDK1.4 was released (Codename: Merlin)

2004 – Java Development Kit JDK5.0 was released (Codename: Tiger)

PHASES OF JAVA PROGRAM FIVE PLATFORMS

1. Write 1. EDIT WINDOW


2. Compiler 2. NETBEANS
3. Run 3. BLUE J
4. ECLIPSE
5. NOTEPAD

JAVA FEATURES

1. Platform Independent – “Write once run anywhere” (WORA)

 JVM (Java Virtual Machine)

2. Simple – The program is easy to use and to debug.

3. Robust – It provides a powerful exception handling and type check mechanism as compare to other
programming language.

JAVA PRIMITIVE DATA TYPES

CHARACTER (CHAR) - can be used to obtain a single letter, digit, punctuation mark and control symbols
recognized by computer or ASCII.
INTEGER (INT) - contain integer values only, that is, values that do not contain decimal places, do not
require a fractional component, and cannot contain commas.

FLOAT (FLOAT) - are used to real number have an integer and fractional component.

DOUBLE (DOUBLE) - is a special float which can store more significant digit and have long exponent.

INDETIFIERS - it composed a sequence of letter, digit and special character. Limit from 8-15 characters
only the more complex the more complicated.

VARIABLES (Ex. String, int, float, char, Boolean) - it is identifiers which can be assigned with in a
functions. it is identifiers that store a changeable value.

VARIABLE DECLARATION - all variables must be declared before may be used.

Ex. Char name;

double grade;

VARIABLE INITIALIZATION - the process of assigned and starting value to the variable.

Ex. Char name[20];

double grade = 100;

TWO KINDS OF VARIABLES

1. LOCAL VARIABLE - variable that are declared INSIDE a function.

2. GLOBAL VARIABLE - variable that are declared OUTSIDE a function.

JAVA LANGUAGE TOUR PACKAGES

 Math.max(x,y) - method can be used to find highest value of x and y.


 Math.min(x,y) - method can be used to find lowest value of x and y
 Math.sqrt(x) - method returns the square root of x.
 Math.abs(x) – method returns the absolute value of x: (positive).

Java Booleans – declared with Boolean keyword and can only take true or false value

JAVA CONDITIONAL STATEMENT

If – to specify a block of code to be executed if a specified condition is True.

Else – to specify a block of code to be executed if condition is False.

Else if – to specify new condition if the first condition is False.

Switch – to specify many alternative blocks of code to be executed.


LOOPING STATEMENT - Loops are used to repeat a block of code.

There are three different loops

1. for loop – for loop is used to run a block of code for a certain number of times.

2. while loop – while loop is used to run a specific code until a certain condition is met.

3. do…while loop – do…while loop is similar to while loop. However, the body of do...while loop is
executed once before the test expression is checked.
SORTING ALGORITHMS

1. Selection Sort

2. Insertion Sort

3. Merged Sort

4. Bubble Sort

You might also like