JAVA Assignment 2
JAVA Assignment 2
Assiqnmet -2
paiymaphisu. palymauphism.
Oceuuurithin PeaAhad in tua
wth
inhegitance Hlotionhips.
ynot Always nuds
fnhesitance
Statte binding s Pynamlc hìnding is
tYesloadod
methods metthods
The angumont
Should d e1ont.
Method& must hoe Methode
name nam0
md Seme Sighatul
lgnatuu
Puivate and inal and yin
methods method Can'te
ovesloadud esdoen.
help1 to WAd to
gaant
headability speaijee iaaplenalhtatton B4
paent class,
SARASWATIEducation Society's PAGE NO.:
q2xlaln handling
example
he Sxeption handllng injava
mechanlsm ang whlcla the AMmal
he applicalon maintaned A
Haatjs
Sequane Codo uAed to hanale
called the
handle" An handlea
the inkaingatts
paint
This
VaueA that
accuaad and
Seape
then
while
Heatoes
exupton
avapuogiane
EXample
Hain
wotd main
utput
Thaou ThAuS
Whn ft
to t o whon the
Hquled Seyne StateMents
hag
that
Leqraity
oum
astmaHcaluy then,
Cannot opagaH
wedto
tnot
lalikea
aing
SARASWATIEducation Society's PAGE NO.:
SARASWATICollege of Engineering DAT
Explain £xapttoms wttth B type n jaa
U Bullt in exupHn
hiesalclag
pagsahaalt to pautiluas neecs.
Ruitt-in Exuptors
eRepHOrs
aNaldh|A tbAaseA
cheked at
at cmpile He
SARASWATIEducation Society's PAGE NO.:
Aw CGmponents
applicatìma
butldlng
Button java Qut Buttarn
lahe Lable.
5)
LiSt fava awt
Canvas fava aot (anvas
Panel java.
ava awt Panele