You are on page 1of 7

Java yo4ranwiDy nam Name kansh kushoaha

Rollno 03o1 88o


weboe deaign Mid Secion- Sec-A
Sem-2
uanfafevAnsues
Sechian-A
1. wet i
dieente betwen impox hi Jova, Oppleb.ond jov,.opplt.FpLk
Java aplek, *
Nava.applet. Apple
Whenou impost When ou impot

Java. applek Applet, t


meos
java.appleb. , itmapns
ou one impo sHing the Single tou ane imposi oll Hhe
Claes avciloble in
Ca aVai lahle in
javaaplak
Java. applet poapa
Patag
. Whoat he inal botk 2
he
inally blouk in ava i Uded to but imposBant Codles Su
as daon Up Code. the
8 Closig gle ox
osi Hhe
Lonnehen.
S3. whot hest iches ane ploted method
en
ovesnd?
Oebdden methods Mwt ove he Same na me,
anguerment Ust,
Ust hehuxn Hyfe . The ove
shdinp meod may
not mit the aCes he method it ovexndes
4. what ane he unes toLowerlaset) and tole (aet?
The to Lowerlase t) method Lonve & a Stig ho
Lowex Cae Hes
The to UPPe rla e ()
Simhxly
MethodConve K aFh h
vppey a lte s
How do Apruk des wm Applitohes ?
95
Applitahow ane just Uke Java aram HhatHhat on
welb broe
wi n Hhe web brouwhe
be exewled inde Pe ndenHy koi Hhouk
Hat
who rend,
whoreas, Applebs ane mall java Prog rarns ane

inclwdad wh he HTML wleb daumen


cdesignedtb he

in
6Whdh Tag in HTML s wed o Pam Hhe Pavomele s
applet ?
Paramag The <faram> t Aulo t Hhe

Kappet
applet tode alse "

lavam Mame a me vale = Migh/


Value" 25 "//
<pa rom arme a e
<la pple
1 hhat is Runt me polgmo»pwanm?
A ProteM that hesoues a Cau o a n Oves dden mehod
a honHme The rotam invole Hhewe o He
nable oh Super cam o talu dor an owhdan
ne,erente Va a

Mathod
8 . whot is e ouhenenta lbetuesn a ohndoo a drame 2
FRaMe Wind ow
T t hab HHe baT, borle r Clote button OLt de esnot ho e HHe ba r
MiWmi2e button , hesizable movable bo de v 1 a
ny Uoe bu HHn
opHows
It is a padt oawi ndow wind ow not a patt
wind oo
(9tis witn awiwow
P ind w ill not inafrume.
Seti-8

&p lin Hae hWeratthy oh Java Extaphi clama


tn
1
Clam hievarty
at Hhe hp He extaph
en
The Clam
1He hrowahle clam, whh a
Hhe direut 3ublam o
he ebjech clam
The Extoph evm lam i wed pv extophen Lonolihons
Hhat He oppl oh'en may neel ho handle .
The rroY (lan is wed ho indi tae a more Seows
Problem in Hhe arti dh and hould not be handled
In Hhe
apptoh'on lode
xphon 0ne loy Hhev Suodiidad in cheeked L
Unche ked exceph'os
ASulb tlames Aon Hme EXtephi ews ane unchodked
ex cepn en).
A danes lomplue Hime Extephons ane thocked
excephos

2 . Desuni be he Hhree AWT Lentrols in Java )

0 lahel
LABEL 1 a GUI entrol oth Con he uned o cisplay
Stahc ext. Tt an be Uosled winp Hhe lalbel Cam and
iB lesthvthoys
Label t
Lahelt Stviy SEr)
how)
Lohel Shi Stint
buttow
uTTON i Hhe beveatyd CUI Lontrol. A
Ora buHton on be Cles ed U he
he utn
buton la
a nd iB ons th to

buHto nl)
ButonShiy s)

ChekboX
Che ukbox Len rol on be e o ed in He chethlo x
Cam and oltoui Low thoos

Uheckloox y
Checkbox (Sny st
Chek bo Sh x
Shbooleoan 0n
g3. xpain te irt
yde AMlet2
initl an
Sta yt t)
ShopC

Kurmi

StaotC)
desnoy

hee
Theve ane 5 mothoeds h an
appet Che yde
O Tnitl desroy
Stot )
Shopt
initC
initC)
stmethod o run Hha ini iale Hhe applel
It lon be invoked
y Onte a He Hme
inihatahn
Sta stC) Tws melhod Lentain Hhe aChad
athval
abylut andtas he appet Coede It i»
ooh Hhe
He
Invokad
immediohHly oe the Init C) mehhodis
invoked.
Sho P C) his Metd
Sho Hhe ex ewhon 1 Hhe
exewhon
1S involked whenee s s1, Hhe capplot.
appo
he
apput i So fra
esoyt This Mekod dooy He applut
a4EY i wok
cloe. It in invokesd when he cupput
.

Window loed ov hen Hhe Fa Lontun


Hhe eb fae is loed
Paint C an Method i belonp o the Cerupdsdam in
jana Lt is wed o cdru He hao ke

Cirde, Squaw, Ovad, he chanle, Fope 2ionm 1


He apet

Sen
Deine upplut. AP b u2le an
applet wil
Loh'th
hoe a
ine,oval a Re Jantle USi dberaut gpk
dam hun th' uw
Apples ane wed ho rovide intatkve ttae to web
0ptohows Con he exewed la brD br
Plaprm. Thay Ce STnall PorHahle Leles embed el in
ATML oje and Con wn ouomaHoluy wihen the
the fa
ane viewed
*
The

Impodt Java. applet,

import Java . awt.;


T

pusle lam Applek extnd Apptek


Woid paia (Graphes g
9 dvas Line 2o, 20, Soo,20);
. dras Oval
2o, 160 2oo,lou)
9 1 Oval 2o0, 160 2ooloo)
9OrasKec C2o 90 2oo, 4o
9.4it ReC0040 200 yo

Zappler Lode GAfrle hirSoo oidoo bordey


/applet

2 Diyheren tat te ollooi


TcP UDP
Stand Y Tany mbn lonto) Stand p ufer dat ram
Prohotsl. ro (ol.

TcP is a helable Pxohotsl asUDP is fastey hon


it ovíde omuvanta TLP as it
foy the does not guan ee the dew
deli've y daba potk O6 Hhe dwa Pa tkeh

TCPi lo we hon Unf Tt i a n une liasle rob tl


as it pe xhoms esboY Ches OU i oee no
faka Hhe
tlons Contro Provle
OUuranu hpr he cloly
auranee to Hhc
olalnohy
he dou Pauhu.
Patkek
he Sine TP is by.
byk IheSi2e o, upP i
TP ues the 3-wa ond wait ag
ODP does not
Shoke conupt aknokdgtme nd jusHends
dok
a a.

GTcP Peto m eoY


chekit TE dest doesrt eho
U hetksum. ay ertoy chekig

b)
Get os
0 In lase Gek Requen,bnly TnCak fost Repua brge
Umed amount oclata (on he amoUnt o doaua lon he
Sent i Gend in he ader Sene be Come daa is Aent
in body.

Ger Rep uen is not Secored Post Keveskis Sewxs.


Get Repuet Con he
bookMolad Post eguest nnot he
book Moykad
Ger Kepuest is
idemp ohtnt oSt Kepuest is non-
dem po Rnt
Ge Repue is mo ekvent Post Repest is em
eicent

You might also like