Anda di halaman 1dari 13

JAVA

Features Of Oops
Encapsulation(data Hiding)
Abstraction
Inheritance
Polymorphism

CLASS

Data Member

Member Function

Class

Object 1

Object 2

Object 3

Features Of Java
Compiled and interpreted
Platform independent
Object oriented
Robust and secure
Distributed
Multi threaded

Hardware Requirement

Ibm compatible 486 or above


8 mb or ram
Any operating system

Java Environment
Java Environment

Java Development
kit(JDK)

Java Standard
Library(JSL)

Components of JDK
javac
java
appletviewer
javadoc
javap
javah

Execution of a Java Program


Java Source Code

javac

Compiler

Java Class Files

Java

Output

Interpreter

Components Of Java Virtual Machine


Class Loader
Byte Code Verifier

Interpreter/JIT Compiler

Runtime

Output

Interpreter for any


o/s
JIT compiler for
any browser

Built- In Datatypes

Byte
Short
Integer
Long

Primitive
DataType
byte
short
int
long

Float
Double

float
double

Character
Boolean
String

char
boolean

Wrapper Class

No
Primitive

int Group

double
Group

Built-in Datatypes Numeric Datatype


TYPE

SIZE(bits)

byte

short

16

MIN VALUE

MAX VALUE

-128

127

-32768

32767

int

32

-2147483648

2147483647

long

64

-9.22 *10e18

9.22 *10e18

float

32

-3.402*10e38

3.402*10e38

double

64

-1.79*10e308

1.79*10e308

String

Difference Between Java and C++


Java does not support Pointers
Java does not support Operator Overloading
Java does not support Multiple Inheritance
Java does not support Global Variables
No Destructors
Java does not support Header Files

Anda mungkin juga menyukai