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

Ict Reviewer

Java is an object-oriented programming language developed by Sun Microsystems. It was created in 1995 by James Gosling and has become one of the most popular high-level programming languages. A Java program is made up of classes, which may contain variables, methods, and blocks of code. The main method acts as the entry point and allows the program to be executed.
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)
20 views2 pages

Ict Reviewer

Java is an object-oriented programming language developed by Sun Microsystems. It was created in 1995 by James Gosling and has become one of the most popular high-level programming languages. A Java program is made up of classes, which may contain variables, methods, and blocks of code. The main method acts as the entry point and allows the program to be executed.
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

JAVA PROGRAMMING JAVA – developed by Sun Microsystem, for developing

History of Java Programming platform- independent internent application


- Starts with the Green Team
PASCAL –v scripting language, short programs
- developed by James Gosling the “father of java”
in 1995. VISUAL BASIC – by Microsoft, graphical user interface
- James, Mike Sheridan, and Patrick Naughton
PARTS OF JAVA PROGRAMMING
initiated the Java language in June 1991. The small
team of sun engineering called Green Team. COMMENT – identifying the purpose of the program
- Firstly, it was called “Greentalk” by James Gosling, and the programmer
and the file extension was .gt.
-1995 - Oak was renamed as “JAVA” /**documentation*/ - documentation
Oracle Corporation owns Java
/* text*/ - is the format for block commenting.
POPULAR HIIGH LEVEL PROGRAMMING LANGUAGE
// text - is the format for single line commenting
source program or source code - program written in a
high-level language

interpreter or a compiler – translate source program PACKAGE - java.lang package – imported


into machine code for execution automatically without an explicit command

Programming Language - programs known as software - used for input and output

Machine Language – computers native language -collection of classes (libraries) , contain


Set of primitive instructions portable java bytecode file
Binary code

Assembly Language – short descriptive word known as CLASS NAME - must begin with a letter, an underscore
mnemonic
or a dollar sign.
Assembler – used to translate assembly language -may contain only letters, digits, underscores and/or
programs into machine code dollar signs.

High Level Language – 1950 emerged -may not use reserved words.
-here, instruction are called statement
{ } - is needed for every class and main

MAIN METHOD - execution to have a place to start. This


High Level Programming Language are; main method gets executed first.
ADA - named for Ada Lovelace Ex. public class static void main (String [] args)

- for Dept. of Defense , defense projects VARIABLE - used to store up temporary data to be used
in our program’s runtime
BASIC – beginners

C programming language – At Bell Labaratories DATA TYPE – type of data inside in the variable

C++ - object – oriented language based on C Characters - char (Holds a Single Character)

C# - hybrid of Java and C++ , developed by Microsoft String - String (Holds a Set of Characters / text)

COBOL – common business oriented language, for Boolean - boolean (Holds True or False)
business application

FORTRAN - scientific and mathematics application


Integers - byte (-128 to 127)

- short (-32768 to 327687)

- int ( -2,147,483,648 to -2,147,483,647)

IDENTIFIERS - is the Name of the Variable


-it is used to Read and Write the variable.
Rules of Identifiers
YOU CANNOT USE ANY SPACIAL CHARACTERS
OTHER THAN UNDERSCORE
YOU CANNOT USE WHITESPACES.
YOU CANNOT USE NUMBERS ALONE.
YOU CAN USE NUMBERS BUT WITH LETTERS.
DECLARING VARIABLE
Syntax
datatype identifier;
datatype identifier = value
REASSINGNING VARIABLE
Syntax:
Identifier = value;
SPECIAL CHARACTERS
{} – denote a block to enclose statements
() – used with methods
[ ] - denote an array.
// - Precede a comment line.

“ “ - Enclose a string (i.e., sequence of characters).

; - Mark the end of a statement.

PROGRAMMING ERRORS

Syntax Errors - Errors that are detected by the compiler

Runtime Errors - are errors that cause a program to


terminate abnormally.

Logic Error - occur when a program does not perform


the way it was intended to

You might also like