Dashrath Nandan Java (Unit1) Notes - Alasso
Dashrath Nandan Java (Unit1) Notes - Alasso
Jaua
i. Ct+ iu platom dependent.Jaua i blatoem Jndkhemdend
Roesnt upbont Multple Jnheae
3- Superd multple nheniale Jaua
4 pert Potntos has sestecicted pelnte
5.dt doent hane beitinst has tut in thtead bubfet:
dupport for theads"
6 spportotnucoe aaua coesntt sebert touckres
ano unon and nion
loutbut i
data ls 30
Sub-ClaS + lclags B
caxB fcand
fclags C tienaxchical Hybrid
Single () Multiluot Gin)
slssnste
Date
Page.
*Abstaction:
details ank sheuing 9ny functienalty to the lser
Jhene a tue uyy toachieue abstacten:
OAbstact clan otQ100%)
Ontentace ( Jooy)
alsssnate
Date
Page.
Abstact nterface
Dhe ahstact keybend ia uede the duegae keyuakdis scd
) Doesnt supbort Snhitanesubbet tnhevttane
to) Can hue abstat as weu ate can cly haue abstract mekhDd
nen bstct netod.
Can haue stotic method, lannst hae dete metod and
amd cnstuctos. Constuctos
ex: abshact clas Anima &x: Inteface AS Vofd a0?
abstact Ved eatO 2
Clos Dog extend Animauf abshact cas B.inblemets A
Sop c" Gatng) ;2clay maim
psvM (Shing [7 args)$ PSVM Shiny Jag:)S
Abr Animal . obf- new Dog0;
O6j. et (); ba3 2
33
*lymrbhim
Polymenphis mians Mamy fatm anditcwns wten
ul haue many clas hat üne Heleatd by inhnitane
Ubcastin : he ufernce uaniasle sp fanent(lass
do the sbict child slaM, it is knsun aL
akcasting
Method Ovexloadag Methad Ovesxiding
JCompile-tine selyriinphismKun time polymapnilon
)3A is pntomed cetin clast sccus n tuo class.
in aametens ae diterint nthis Name as uele a
anamelr must be same:
Cas hauing mutjle mthade df dubclas has he dame
hawng same name but method As aeelarod
Parent les.
nte
diterent in Parameter:
alkssMAte
Date
Page
*Excaption Hamdling:
Jhe tnepten handling in jaua ia bne af he puwyl
mechaism to hande hl untime eines do hat
Hhe momal leur s4 the abblicatien can be maintaint
hua exception handing iu mamapod ua fe Keyusadai
ExcepBen
D Clased aa an Uncheked casid aw checked and
tybe Wnchecked
D beleng to jua dangsemprt bilorng to uAlang: bxcagtitn
tdt is BecoueHase
iv)tCan't be DccwY at tcam occy at un lne
ompile tne
TO Eor, Out of Memory EoY, ete. t Nu Pointen Exception, ete