You are on page 1of 6

Unit-

eption landtrg,- a

An exception is a ConditHon thout is Cauwed

ne untime ror n.Proq. ramm


b
Thee e 4 Steps slove he untime enon

Find the pYclbley


ahfom at emoyY
3. Reduce tror info
4ake Corectiveation. 903

exceptionTHees EThat handle te ruunbime errors)

) Armthenmatic Exception 9loors39ty


Aray stmeEocepion ospt10t?
To Stoe ¬xcepton
StackeverHow Ereption
23a03

pe KCeptions
9
Ihere axe too ma'ny 2eptions: Checked Excepton
Unchecked &xceptioy

he tno fs Comsidered s an unchecked Exception.


But Acconding, to Dracle,there ae
mee
EKcepbiens
t Checkedxaeption
Uhcheck.cd Excepton
SEmor
Dthecked Exception mhesit ty Tkocnbe clou
The clatses hot
directty
Enor are Known as Cheke
Cxceptíom
Excpt Rustime a
Eeption

10 etion, SQL Exceptiom .

Cxt
Uchwked Excepion
tnpehit.directty en
kuilane Sg
The Clases that
Oye Kneusn as Unckecke Exeptien
ey Clre ot checked at Conuplie eme.
s,al2
3EmoT
o oai
f s7eCOverable .
Ex Outof Memony eo
rhual Machire ervov

Java txceptien kequcosds


here ae
4ee Keyicovdls to hardle e Geptien

2 Cateh
3-Vmours ) 3

hes
Tti ued to
speciky a block tohere we droe
Place on
Gcepton Codeeohch meank
lanE e

try btak adon


atch 1t must b
weans we
preceded
Con't Ae
h by block
blocr chh
uhich
Coctch block alone
alone.
Thou t s ke
a
kejeoend ohich s ued to
Thoto an Excepion.
Ex
pultc claas Jova ExceptionEx

pukrc stalit vord main


(Strings argst)

ivt dat too/o rd


Cateh
Ccut ch 3was

Systen. Out piutln e)3.

S.0p 'nest oh tha Lode5


PL

)Mulk proqranmming CPU


Th
ConCuTunt 7esideny in the
more than ene poaom
makn memm y.
called Dulhprogatming
nI n Lttul preqramny Curronlay Exe cuig
Execuuig phogram
Prgram
'nishedtvecukon;

Mulipnccesig -
hlhen Oe Syetem fs Connecad to
niare hau One pioce
loceK-
wwch Collectively t for the Con letou c% task.
Coypufe System
CP CR CpuN
Mulkithreodina u-
tis a
Conceptual pogarming Foadig
pocadigm where aa
Proces s divioe irtb
NO Sub procey alledl thrend.
hotes
hmead Trnead ahroodn
Mulh taskang
Smale usu Mulitaukn Joe
Mulki e NuHtae Joß2

Jo8 3
Multread ing
+Tt th prote o Executng mulkple thntads Sioubbre
-cusly
Muktpyotexig Mulkithnoling re used to cckieve
Mult-tacking
We use multhred ny than Multiprxeir becz meeds
ae Utd a Shoed memcy Oe

Thvead
The Smallesun?t oh roxesin
tseperath pakh te exeation.
-

They ase fndependent


If they Ctu
erecepten tn 0ne threed they dcesn'
-

ahec ota trecce

stnxRunnalde RunC neo


Runnable
Dad
ed Runing
t b n i n a
Runni
wat) tating
watig Dead

neu t is he neuw Stat in lfe Cqele


E Menadu iM hi unkil the Progan start

Rwnnade whwe stant the eed ten ht thmes


Runnable IF the readt schecdule has selectad

alarug The hreadl is in


uoalHrg state Untl
until
he next read is enecuked

DeadThe thread 's n 4he pead State htes


hsh the -Clelt Coyplehion th,Pegr
Jboyo2 9

You might also like