0% found this document useful (0 votes)
8 views

JAVA Assignment 2

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)
8 views

JAVA Assignment 2

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/ 5

Vauundhara &nete 34

SE- Conmps B 00PM


SARASWATI Education Society's PAGE NO. :

SARASWATI College of Engineering DATE:

Assiqnmet -2

DIHeentlat betwen method vuloading


nathad reAiding

Methd MeHno oviding


geiloading

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.:

SARASWATI College of Engineering DATE :

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

hyttm. t plntln Cmylkngth (

utput

Exceptom etuead main


Matn
main (Main jaua,6)
SARASWATIEducation Society's PAGE NO. :

SARASWATICollege of Engineering DATE:

3) PHeen+tatton betwea0 How Qnd Mdwe

Thaou ThAuS

Whn ft
to t o whon the
Hquled Seyne StateMents
hag
that
Leqraity

MAed to delau haultlple


eNeRLLGN expliciy
hio CehAma Whicheaes

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

Cuerked lxupHo Unheek od


Exupibn
denad Exapton
Sanatinmey naa
Cestom
dtuelapea handle
class
oreatedbt
cendiHos laptonal
applrcation These
pact StOndoud

hiesalclag
pagsahaalt to pautiluas neecs.

Ruitt-in Exuptors
eRepHOrs
aNaldh|A tbAaseA

cheked at

at cmpile He
SARASWATIEducation Society's PAGE NO.:

SARASWATICollege of Engineering DATE:

Explatn AWT and injauar


AW Abs Mact Window
and
pAicle platfoia
intyasa
independnt wauy t o
gAaphicai
Tawa 4andad
Editton(SE to
applia+Hos,
desktop
AWT Componentk

Aw CGmponents
applicatìma
butldlng
Button java Qut Buttarn
lahe Lable.

5)
LiSt fava awt
Canvas fava aot (anvas
Panel java.
ava awt Panele

You might also like