Professional Documents
Culture Documents
OAK
Click to add text
Click to add text
Green
Java Coffee
Java
Applets
Events
Swings
Java Execution Process ( BYTE
CODE)Java
Programming
Java Development kit
. Java file
Java Run-time Environment
Java Compiler
111100010
Byte Code Java Virtual Machine
.class file
Native Machine Code
JDK vs JRE vs JVM
JDK- Environment to develop and run
JRE- Environment only to run
JVM- execute our Java Program
JDK
JRE +
Development tools
JVM+
Libraries
Variables
Storage
Container
Data Types
Data Types
Primitive Non-Primitive
Arrays
Boolean Numeric
Strings
Character Integral
boolean
Integer Floating Point
char
byte
short float
int double
long
Data Types
Siva owns a Retail Department store. He
need to create a bill with the following fields
present:
Invoice ID
Product ID
Product Cost
Quantity
Total Price
Feedback Provided?
Invoice ID integer
Product ID integer
Product Cost double
Quantity integer
Discount double
Total Price double
Feedback Provided? Boolean
No use of Pointers
Java Features
Java Checks the code during compile and
run time
JAVA
OPERATORS
JAVA Operators
Arithmetic Operator
Addition +
Subtraction -
Multiplication *
Division /
Modulus %
JAVA Operators
Bitwise Operator
used to perform
manipulation of individual
bits of a number.
a|b 0111(7)
~a 1010 (-6)
JAVA Operators
Relational Operator
0000 0101
a=5 b=5
a << 2
b >> 2
JAVA Operators
Logical Operator
Logical OR ||
JAVA Operators
boolean t = true;
boolean f = false;
(f && f)
(f && t)
(t && f)
(t && t)
JAVA Operators
boolean t = true;
boolean f = false;
(f || f)
(f || t)
(t || f)
(t || t)
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Control Statements
JAVA Array
Array
JAVA Array
An Array is a data Structure which holds the
sequential elements of the same type
JAVA Array
JAVA Array
JAVA Type Casting
Type Casting
JAVA Type Casting
double big
big = small
JAVA Type Casting
Type Casting: Big to Small
byte small
Small = big
JAVA Principles
Abstraction
Encapsulation
Inheritance
Polymorphism
JAVA Principles
Abstraction