Lec 2 _ Intro to Java.pptx
Lec 2 _ Intro to Java.pptx
of Electrical &
Computer Engineering (ECE)
• Object-Oriented
– No free functions
– All code belong to some class
– Classes arranged in a hierarchy or package structure
Dept. of Electrical & Computer
Date Slide 3
Engineering (ECE)
JAVA …
• Distributed
– Fully supports IPv4, with structures to support
IPv6
– Includes support for Applets: small programs
embedded in HTML documents
• Interpreted
– The program are compiled into Java Virtual
Machine (JVM) code called bytecode
– Each bytecode instruction is translated into
machine code at the time of execution
Dept. of Electrical & Computer
Date Slide 4
Engineering (ECE)
JAVA . . .
• Robust
– Java is simple : no pointers/stack concerns
– Exception handling
• try/catch/finally series allows for simplified error recovery
– Strongly typed language
• many errors caught during compilation
• Architecture Neutral
– Runs in both Windows and Linux based machines
– Runs in all configurations
• int
• float
• double
• char
• boolean
byte b, c; short s;
short t;
int a;
int totalNum; long lightspeed;
char letter;
16 bit sized