Unit 1 Java Fundamentals
Unit 1 Java Fundamentals
Javac
java JDB
Run Program
The descriptions that follow use the standard Java 2 SDK (Software
Development Kit), which is available from Sun Microsystems.
Java is case-sensitive.
Java Class Libraries
Variable Declaration
type identifier = value;
Java Keywords
16 bit. Range is 0 to 65536
Type Conversion and Casting
Explicit conversion
(target-type) value
Arrays
type var-name[ ]; or type[ ] var-name;
Operators – Arithmetic, Bitwise, Relational,
Logical, Assignment.
? Operator
exp1 ? exp2 : exp3
i=
Relational
Selection Statements- if-else, switch case