0% found this document useful (0 votes)
1 views

oop-assignment1

Uploaded by

B43 VEDANT KADAM
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

oop-assignment1

Uploaded by

B43 VEDANT KADAM
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Roh ho2413203

THADOMAL SHAHANI
St JUorMPS-(3
TSEC
ENGINEERING COLLEGE

Assignmert1
oeiteshort note on

Features ot fasa
Java is robust ond secure '
Jova does nD &uport the concepB ot pointers directls This maka
iapaSsible to accidenty relesence memor that belongs'to athex

2.Jen is platBorrn indapthdent ond pariable proqrareminq lan quoqe


Patoxen independence is the most excttihq Atartuc o java
pYogra mThis me ans pro qrámi in Java can be enetute d on
01 pladorm3 This eafere is bajed an the qoal 0rite once run.
anyonhee Qnd atantim foreveri

3. H is obËect oxie nted praqramminq longuaqt


aupposk Vavisu ohieck artedied ftafare suck as data
thcapsulatia.n, inhtnianct, paly.maphiaro Qnd.dynamic bindihg
Iuenthing in jova s oblect he ohject oriented mode ot Java is
Simpledd con be eauilybended
4. Jova is multhreaded and interactive Ionquaq
Java suppark ioaltithreaded prooamminq which allosos a
ogtarnrmey to orite such a pcgar that con ptrioren mary taR
sitauHantouly
Th1s altimatetq alleud 6c helps th deuelop to develos
interattHue code
Java is dynamic and axctensible lanquage.
S inNing neu libroris
is capable of dynamicallu
This Janguagt Java ao stparbk the functhiohy citen io
, nethoct and object.undion are called natve functionu
Cand C+ Ihee

JVM, JDIR RE

JvMJava Vstual Machine


o
Tava Vtual machine is a sef ob prgra ro compcnen b
Soffeoare and prgram
resder in a
As the name Suqge h,iis a vittuol compte that
eal cornputar Jova can achieve }s plafTor o ndep endence
featuxe due to JVM.
The jova vixtual machine taRe byte Code ay input tea dy it
interpreht and then execute it The )n Can qenerater an autpt
toTapbndinq to the underlqinq platform
TDR [Java Develepnent kitJ
ova development Rit is_nothing but a tottecthen ot
Th java at foeu
that con de wed or developmentb and runttne prOq am
consist o

3.

4avab
L0vodocNG

javap
THADOMAL SHAHANI

TSEC
ENGINEERING COLLEGE

JRE Java Runtime fnvironma nt)


TRE S a port of Hhe Javg development RiE ond is ued fo
un' java qpplication t proMIclex thu neceSSar librajes th um
and athex componenth to.exerete java pro qtath is essential foy
Tuming but not developinq jav sotoara. ItT containe /avg
clau
boued
hrdrieu ntrded b applieation. Required to cun ony foa
sottort on a dlevice

3Lrapper dlaues.
uhappe claue axe fhase clcuu that alloo primitive daa fype
tobe atud n ohjecth Tht erappex clau is a Aind ot orapper
dtound prìmitiue daia tyße. Tke orapptr clau xepteienh thu primitive
data iupe in t intancel'etclau
Prinitive data type and eoneponding wapptr ca
booleao Booleao
byte Bute
ehar Charactex
dou ble Double
float Float
int
Inteqt
Jong
Shert - Short
Void Votd

Methedu to hondle orapper claues ONeenlisted beloLO


ENGINEERING COLGE

Nethod cued Desecintis n


An abjeet ic eated for the
inteqer varta ble nt-var.
An obe ts ceotect for the
(Aoat var) fogt vasiable feat VaY

Daable val nt Double An object e cxeated tor the


Cdouble_yax double vasiab edouble_var

An objecf is created for the


Cnava) lenq variable langvot

4 fe cycle af a thread.

thxead isa ite cqtle Specite hacd a thread qet proceed in


th oua ptog ram Biy exceLinq yanictu mehhod, Follaoieq fase
YepTent how a thread ean be in one ot tht state at on ttn
TSEC
ENGINEERNG COUEEE

Neu
orreleion Exit
Runnakle. armnaied
daiting
eiting INer val
tostefec
to
1erva

Tmed waitingi Blocke d

Aite cqele ot Thread


Neun stahe

shate

Runnoble state
This is Qstate inohich d thrend starts extrcting:

- SOrnetfmeL one state threadneed to underqo in toa?ihq State


becaule another thsed s art exeetting

Rrned oaitinq State


thrcad watlng
there is a provision to Reep a partteclar
ime intervral. This alaus ta ce ate eeute htgh prorHed
Saene
hrend frstA#t th fimming qeh o
THADOMAL SHAHANE
TSEC
ENGINEERING COLLECE

stole enters in YUnnable state

B)ecked state.
twhena povi tola thread tssue an Ingt otput yefquat fhen
OS send into bleeRed state until I|o pesoftonu qut Coen plete d
AHe th/o opexaHon eomplttio n the thirea d ts 'Sencl bante to
UOnable tata

erminated state
After sceceudcl co mplet ion bt exection o thre ad in runna ble
state enters thu otesnina e d state

You might also like