Professional Documents
Culture Documents
JAVA Programming: MC Wilford Paclar
JAVA Programming: MC Wilford Paclar
JAVA Programming: MC Wilford Paclar
Mc Wilford Paclar
Introduction to JAVA
created in 1991 by James Gosling et al. of Sun Microsystems. Initially called Oak Star 7 first project using Java It is the current HOT language Its almost entirely object-oriented
Web browser
Has a Java technology interpreter and runtime environment.
Task Write the program Compile the program Run the program
Output File with .java extension File with .class extension (bytecode) Program output
A picture is worth
This would be in a text file named Hello.java DEMO of writing and running a program via Jcreator or Eclipse
int
Signed integer
IEEE 754 floating point
4 bytes
double
boolean char
0.0
False
\u0000
8 bytes
1 bit 2 bytes
True or false
Unicode character unsigned
N/A
0 to 216-1
long
Signed integer
8 bytes
float
0.0f
4 bytes
Java Variables
a symbolic name associated with a value that can be changed.
Data_type name [=initial value]; Example: int rate = 80; float salary; salary = 15.80; Declare and initialize variable rate Declare variable salary Initialize variable salary
More Definitions
code or source code: The sequence of instructions in a particular program. output: The messages printed to the computer user by a program. console: The text box or window onto which output is printed.