0% found this document useful (0 votes)
16 views24 pages

Java Notes 3

The document discusses various programming concepts related to memory management, including garbage collection, exception handling, and thread synchronization. It outlines methods for managing resources and handling exceptions in programming environments. Additionally, it emphasizes the importance of efficient memory allocation and the implications of using immutable data structures.

Uploaded by

Akshit Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views24 pages

Java Notes 3

The document discusses various programming concepts related to memory management, including garbage collection, exception handling, and thread synchronization. It outlines methods for managing resources and handling exceptions in programming environments. Additionally, it emphasizes the importance of efficient memory allocation and the implications of using immutable data structures.

Uploaded by

Akshit Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

colleinn

nahae calledinn Je makethe

hih has een lacaled at watime


that meas he memey heap wade
(hanbae otedien ccess.

made
prcces because

ime
¥what
cclledin
ae Wilab. azganage ollediss

Aeenene
Hanead Sack
nd ead
gdtiug memory

the
auntime class hie cneaked
Pgam
calinalbzel me thed

me thod

maKe
any wnhes chable abied
eachable
neachabe helai the ganbage celedrn js
Hhat Yes)

hanbae calledicu
Asomatic gonbage oleion is done hn the batgume

he aibage aaledinm cals the ass desuda


metaed inlize deiued and en dnee tae
memeA
The c taads Syslemgc and Runine.gcl

Sugaest. the ganaye


he inize)ae Haad is quataeed o hun
And the
delete
Seoral
ajeds die, \ma
KeepsHhe
Space Meta t
Semehy me
hae based i)
nenene Ldenk
last eence
aiazid (Secanl neeIeMee phanto
nelenence
wncigiilie
naiz
makes colede *he
no, Page
Dat:e
Date
Page no.

checked ane Koan to compiden but cheked

unche
-cked

the emcepin is nst caughi by the pnoszam


then
Jine
Al tase sdatmes ahih. genezade
Kind

Al thase in ihih (oming heeen a ine


ahih tae exceplieu ii genehalel and a calh alak
wil be skipel Hhe exceptiau is caugk ay the

paiud appnpriae aestagsi in cah alake

have
Sporal
Date :
|Page no.

nev stalemeds and cath


allased
Tay and caleh hlak ane made don eahathen
ReCue Hhe
Camaaiadine anunews Hhea /ava cheates a
pais

yau exerule the jsua pnesnam oith cemand


chetesa slaing
ype aNNay c Hiase camnaud ine
hen pais ahe

can be Sugplel
cemmad iue
You Can have eatch lack
LSiagle y blaek.

sinale aauig
aie
catea blk
bdetk scu aime

A aime
exepli
inhetdi
aade ahe daiQcepied
s
excepiaa Custom Wia
eKLepliaa
is hecked
also Keyunnd
is os
make to Keyiacx lhnaws
indicati
ou on qive
Keysid Thzos
asing
he
must hey then hdak single
k ane than Mahe
no. Page
Date:
Datt

Page no.

alays erecuded

used

blork the a cah blek


You can hae auly
iay blak

Hhen iJ

Sysdem, exile) dundian is called hedone Hhe

yekiau askiny the um


hose the
phoaram Jeminaion)

dermaiuate tae Paga theut


losing Cahnetuaal
Jonmiaaian).
Aulomatic Resauhce haning
hose clasie Can b Cheated
Hauthese day hl.k wbih
implasnendiy Aatalleseable indace
ohateven nesouces you wneade i e the panant hescs

Keyuczd

eupliatly
atleas 0ne
Cnsinudan agume
ane adamatically danuanded
1n a ealing chain aud tis phees0s
ecepdiaa nspagaliu
Date :
Page no.

iMamahle

alest
is to naake
A seglisided appaach
and conshut insdanee
constnucion

I)Ahe

paeude naethads tat wadi the mutahle


abicts

Never Adeneue to eudenned mudahle


saheds passed tae canidudan i neressahy
nedoneuces to the capies.
ntabe abieds Lohen necessay
the
Spiral
Date :
|Page no.

seene dharadeu.

alse nepnese ted via

aig
Szingalle a adale ass.
(an
you wa make cs imdahle
then make al the aance

JidensKe "hel ane

y Recae ane immutable Haey can he daael

cantaia dapiate abyeds

Sponal
Date
Page no

Cnansage calledia i neun do


Keçd iy caslad qaal
(hede
allocae auays

a" bothhe apenand


mut

eaçuala) aetcd a an ohiea


(eimpang ae ae Redsnente vauable that
Meau the ane Same Haheu
it nedihi tuthen wise

The espual) me tacd==)


e ualae
tholwise

Ruesdan Singbu

Spral
Date !
Page wo,

ihen you chee the stingBullen cass dje ing a


delat constuda then jm cheae a cha Jype

Saiosa d capaidyl
+16

neadiayis used o aieue ultdakiug in a taG


appliaaa
Caa dak simdaneausy

Runsing
Those iusdnuieus swhich Jakig sepade meany
addess space RAMo ane

heauy eiglht paacess.


Tase iusdaudians aik ancnazaKiagsepexate
RA M oy
space in a

Spral
Page no.

sepeaaepath auded akg


-applicahaa
One abied a tanead clai is nespousihe do dant
Haead at a ine.

main aead

ntng i RRerudad tinhual)


ded adaaaicady
Adays nake seganele Jadostant
tanend
dilleneat ailencud dask
dlenet taend ae moke a sepandl
theadelai dan ah ask.

nead then mate


taatigleahËeds Haat tanead las
Sporal locked. ea he
dead be dosad
hlouked
othentead
halda that dok ahjed
deadak A
Qaaddake
daya iumehed ouenloaded an
SD
methd
and
TiIz,T3? andei iniish they
MAcse o ed AMd
cass lhnead Metaad Aoin
no. Page
Date:
Date
|Page no.

sdasded

made dead ancely

ijachnenize

Sporal
Date :
Page no.

Syinhauized dasse
Syhhiouized cdess

Iu iaua
cale

tis
-lsaplat ak
a

Daeman methode

and
Htaeade
aat panendannbagr ollediag Tae aplicatianhäseuat
The applicaia the
Knatwnam is a nendaeoion theád

Sporal
|Page no.

A
theade nunni ug uhen daemey
thneads
nahie Mstae ek.

callohenmi nat e a thead! Hota2cuen


Aethed

Thene
densitaae. Heweugn the Ai cnupt method? can beased
methad is calledn e tHhnea, theteugted statu

This is preset i eueny


ead Eah shauld
Sdeanugkedz
Hoeu971 i a taiead is
ockede it an bnatthet
the ivt enualed stats. Tais is chene the ato`ualea
Excepticn comeA iM.
when the atehi pd()y methadi called on ablock.
Haead the hloking cal? nch a aleep?oz LIais
Iutennutsd Exeegtine Spral
Date
Page no.

x hein is
idenhspdel shel e
t t t e dhok

Shutdoun haak
Shdcsn hoaK is an indialzed hut an ntated tgad,
whch is iauaked hen Tm is shatdasn

when the da han-daennn tanead exiats


utig Syslaa.ent Secand way
deinaiu ideratiam, ike hy
pnesing
The shutdas haok cau he tgisened o tne java.
Jag. Ruudie
haik)ahad
is cuy alaiable innK abose L?aR Al

enden and couchheuly heu the ian.


aadaine hagind Ouce the
shuddas Searueuce it sdanded itis aa passuble
hocks deasgde
negisined heak.

Sporal
Date :
Page no.

cnney tanead head k bak o nable

A taend can be moved a the vintaa CPu ay


yielding.

duayscause
yiald.
Rles
Case
ake the whale
methad
black se make pandiculan pania
athe Haan aade methad.

Syacianig saaad adack can be achieved


ack can he

ia Suacaienized bdack

Spiral
Spral
Hnend calledea aasbage
wee
dea be
shes
bakgisune
ads thne Daemon haead
x Macmcn
k cËed and cydepriaeksei
cyde.
t pxecessan methedeleases
the ody sucpendC *
. deadlak
is dne hen hdeuk syncaaized LAn
no. Page
Dat:e
Date :
|Page no.

Jo canned the
Taputlbdgat deuice plea Iapd Odput openaias

sneas ae Aepscaeded

ane diuded ideo panse


.Bydesi.ntam cdass CASCIT cade sydea)
"clhanstaeam dass (Unicode cede syslem
dinedly comneted to Iiaga

Jeue stneams
then
staean he a teed sdaea

Sporal
Sporal
ilex Szig Slhigkesden
den
chanAasmyleuden B,dedaaybadpib ByeAnyîupd
Scaa
Raaden Fle Snca OutpstFlInpdlaeam
Fle
ideliut)
labshad) dasslahdad
class
laatadllnead0 Rsaden int
prisst
paths
casseluNIcoAE)
path
Chansaeawm ButestneAM Fle
Concode okeize SAig
canneh Iakeien Sea
dasses Szeam
no. Page
Date:
Date :
Page no.

avadas Tanasahle

SaplFxcagaa Viatual Madine EMal


ToEuceptina
asit fosaud Euceplian
Rustine Feepisn
Chetad
kuepliaa
AwaskuExepl
NLRaida Fucepia

New
obied cneled
/ New

Rumaahe Llo Cam plte


totkee
hesue

yieldc Seepdove Rloked


slepo
waitt Po
Supttt LoK
Rlack u
method eit Dead sdopl) T|o Sponal
SM.hads a Tauead das
-puklie waid sdNamt (Siing ame)
puhlie sdziug gdNanel)

pulie
idngliee)

puhlie wid iadexngd)

pukli wad suspendlT


puhlie nid heine)

ehlir stdic aend.cuhend Tantad


pubie uaid yisd()

You might also like