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

Java Assignment 2 Continuation

Yqhahahhabab ajjana ajajba ajabba sjja s sjs s s

Uploaded by

Korean Kk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Java Assignment 2 Continuation

Yqhahahhabab ajjana ajajba ajabba sjja s sjs s s

Uploaded by

Korean Kk
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Theead ?

eeplain life cycte


yele o Thead.
-Ans: A Thhead is Liglut weqht ub paece%, swall
Lit ot pkocessing. haend is undependent. t
wyc s a sliacd mcimety as
New ueadNew Boun
Stat

killed,
tuead

Running Rmabte Dead


Actwe
head

supend Resurne
wait

Sle Thu ead


Blocked
CNlet Rnnabte)

New beun state:


bon and Us bad to be unewbeu
stt
The tead not yct schedled for Auwng

i) Runable State:
The hsead execuctien
Pocesor
hau jecned the
kuauing statt
he pAO CeSSOS has qivan its ime to rce thiend fo
ts eze Cutioy
4 The Hhead until it qines up contol
tacen Dver Dher tueads

iv) Blocked statei


A Head s said to be blocked
¢ Tis state is achieved when we invoke pendl)
wait) ethocy
ecpc)
V) ead State:
Evey thuead has tts e cycle
deat
state - ushen nc ) executin cermple e8.
aevate dleatth uhen thead s klled in besn,
knwn btocked slatte
achieved ushen we uweke atopl)
method Hhead Complete ts execuetio
M
SL8. What s collecuo
As: The Colections Java tamewet
achienement to stere ancl mapulate
pacvides a
cotlecttoy can cLcleie ve
he queup oy ebjets Jowa
all he operatuon that
3okung a eon,
(ns Manipulatisn and deleion
Aeanching,
. hat is cotlcctie) thame wet ?
Ans: The Cotlectinyy thamc uwck Aepaescuts aa uniticd
arelutectue Steing and mauipualuga qoup
i. Sntejaces and t implementalion ie claea
Ageithnn.
&ao. lhat is Java Beau 9
&&0.
Aws tIava Beans is platfecm-ude pendent
Noclel WAclten Java Paogcamning Languag
to beans
tenponents se
seveal
* Jova Beans ae clases wch encapsulate
ebjecti únto single objet
Random Access eup 9
C class and wktina
to Rande acces tle . A Aandem access fleC sbehaves
e
ike
pecntea . Boy movug
Únpied to Hhe auay cattedlKead flewaLte
te we he opexatiou
BtRe Mevtin hypes..în
Ans: A Staeom sequence o dato Java, a
stean b cempesed o bytes .3P; called stern
ihe aeom ef water Hhat OVter

Tyes streAm
). Bystew. out: tandand output
n. System. n : standad
steawst to stream Aus |Q22.
Output )
Tput i)
What
peeiplead
Steamaiays
aerce kead fo
steanm:
8ead
:
Java Suput
data data
daxa
applicatiens
to fom Seavn
devce application
a
destnation a
sonce ond
60cket.
WSescLn Out
n ;
tk
put
it
output
cnput may stxeaum?
may
be be
a a

You might also like