java assignment
java assignment
JAVA ASSIGNMENNT
Kashis h Maoda
Le 1- Waite he diheene betwen Abstract clas a d
iuterfae.
Aws ABSTRACI CLASS INTEREACE
1tdos net Aupport multt ple t f u l l y cuppoat mutiple
Tnheitamte. Tnheitauce
t san Auoe fal, non-jihet I t can luaut only state
Atatic amd non-tadic vasiables aud tnal vaniabl2.
Exanple: ( Exaeple:
hublic abstAact clan bublfc 4teyace
Shapes dsawable
mblic asanct vod. yoid drausOj
dnauus ();-
2T.0
THROW THROWS
Java Twnow Kuywand &wd It Mud Iy
to thhown am extcepho n method
ExPu CITLY fu he tode
ALinaune to dbedase an
etceptiom whleh migat
be trown by
block ode uudieu
dusing etebahn of-code
the
St cam
opogale mchecked Using thou we cam
excephiens delae
both checka_and _wuchueked
Srllowed bs OL gTt exceptuousy
wtaee o Excephon to a M oh talloused yelau-
be un. Exzptins to
be thoM:
A witin the 9 t i ed with Metod
tihod.
Aaratine
HNALLY
1 a blouk fu exeph en tenouing iu Iaua_t
olual wh
fmpotamt_toole_otethe excephin uu
Th aways pelatd p ty ud catelu fn
Hlandlig 0 reepho
a) k hms inpetant
cadeeueu er cepizen Ocewnd
bnally block_cleans up all stuousces wed in
lock.
t x u l as Lopn t cotdn block & buing
as
ereub Tts exeutin Y's
fndepwdsnt of the xupa
ExAMPLE: puli las Firally Eg
ublte siahilkd rauin (Shmiy£Iaaa)
ystivn-ud printdn "Jnsidebr
nt data 2t)o
ystn 0upaintta daa)j
tin pithyelkc Extephanea
yplim:Buk println/EXcLpton
Cfuuudshully
Uysjm.dut printl
ially
ysin cut friutln Munys exeuli
FINAUZE
Mehod to cleam up uat bejoe obydt
ganbegt tottroted
EXAMPLE
pukie clas Ffhalbe bxanple
publie Jtalit vold man (ting I ag4)
Mouse Ente
ereo
MOUSE ENTERED
KASHISH MADAN