Documente Academic
Documente Profesional
Documente Cultură
by
A Java program written on one operating system, runs on any other Operating
System without any modifications
Java Buzz Words
Java is
2. Architectural Neutral – Runs on any Machine
A Java program written on one machine hardware, runs on any other machine
hardware without any modifications
Java Buzz Words
Java is
2. Portable – Write once run anywhere
A Java program written on one operating system, runs on any other Operating
System without any modifications
Java Buzz Words
Java is
2. Distributed – Portions of your application can run
on many computers
Java Buzz Words
Java is
2. Multi-Threaded – Many execution paths within a
program
Main Thread 1
Thread Thread 2
Java Buzz Words
Java is
2. Robust – Auto-memory management – No pointers
Garbage Collector
Java Buzz Words
Java is
2. Secure – Byte codes are verified before execution
JDK – Java Development Kit
JDK – Java Development Kit
JDK – JRE The Java Runtime Environment
Structure of Java Program
Structure of Java Program
Java Program Compilation
Hello World Java Program
World
int myarray[];
myarray=array;
Array Declaration and Length attribute
int array[]=new int[10][20];
int myArray[];
myArray=array;
myArray[2][3]=20;
Stack
Heap
2-D Arrays
class myTestclass {
public static void main(String[] args)
{
int array[]=new int[]{2,3,4,5,9};
for(int x : array) //For each loop
System.out.println(x);
}
}
Do While Loop in Java
Control Statements – If Statement
Control Statements – If Statement
Control Statements – If Statement
Control Statements – If Statement
Control Statements – Switch Statement
Control Statements – Switch Statement
Strings – in Java
Strings(Literals and Objects) – in Java
String s3 = “Hello”;
Command Line Arguments
Command Line Arguments - Program
Command Line Arguments - Demo
Command line
arguments
k Yo u
Th an