Java Introduction
Jake R. Ersando
Java History
• created by James Gosling
• Green Team
• Green Project
• in 1991 (Sun Microsystems)
• initially called “Oak”
• in honor of the tree outside Gosling's window
Java Characteristic
• Simple
• Object-oriented
• Distributed
• Architecture Neural
• Portable
• High-performance
• Interpreted
• Robust
• Secure
• Multithreaded
• Dynamic
Simple Code Interpretation
Line 1-5, 8-11, 14-16
Multi line comment
Line 6
Package name;
Line 12
Class header
Line 17
Main Method
Line 18
Program Body
Java Variables
• A variable is an item of data used to store state of objects.
• A variable has a data type and a name. The data
Java Variables
Naming Convention:
• Variable names are case-sensitive.
• Subsequent characters may be letters, digits, dollar signs, or
underscore characters.
• If the name you choose consists of only one word, spell that word in
all lowercase letters.
Java Keywords
Java Primitive Data Types
• Logical – Boolean
• Textual – char
• Integral – byte, short, int & long
• Floating Point – float and double