Java Short Answers
Java Short Answers
(Set-1)
fs auto booing rd un boairg tn jua
yoht
8 futo toing :
Cenveatinga poimte type to tt corpenchy
bong
Cbject onappes çlas îs called auto
exi nt paimitve Trt=10}
Inteqes objectIrt - piitiye Int ;
Auto urtetrg: object eYappe class to t
’ Coneting Ts called outto
Ceyespendig potmithe t t
unbcatngIrteges
cljec Trnt = l0,
nt pofmttre Tnt - cbjectIt;
ay wbat 1s the puapese t Thsead qDup ?
n Java fs a celection
4 Thazad 6rcup bo fn
thoct can be mainaged tbgeth.
f thieacds and cortr
It psovides a uay to
a oup o theads
Soce and Listerez
Dettre the tems Event )
3}
Changing the state et an object
s Called event : button clib)
object that qereaates the event
Sousce : The
Cg:Tattrn) s2sponds
Kistenes : hn cbjed that secelves and
a: Dctienkistenes)
to euents (eg:
and
4y CompaL and Cortrast pptcation
Ppplet ?
Arepltattne Applet fppliealien
) used foy uob based1) Used for standatone
Content pogiams
Rwn n a bLOseT2) Runs en TVM
er applett
matn mothod is 3) man methcd is
net sequïred 32qLied
does net soquire 4 lequbres Kighe
Kighas secuaty scusty
5 Baiety ezplain about JRadio Button p
9:’ ?s a GOT Compenent that a(loros
Users to selet one ption feern a
guoup ot etfons.
They aM otten used To fems, sseys
and entiquaatfen seting.
Set
Tustate the tife cycle ot thaead o
6
Ne A thiead cbjet is Ceated budt not stal
Runnable’The thread is ady to un bt mot be exe
thread ffor
Runnfn -’ The thacad schedler plck the
eieution,
Blockod Jwloithr-+ The thacad is waitrg ter 3uoucg
Teninated The thaead has completec.exeuton
) What Ts the puapese o Enumsotion în gava!
As The puspse ot enumeation tn fava 1s
to detine a tYred set ot ránod onstarta,
maing 8hu cocle moe sodabe , mairtairable
and type- sote.
& Deine nney dasses and meted innos clas 2
: Ipney class class defned ns+de
ancthes class, bt octsde ary mothoo
Neted nney class: A class defined fns+de
anethey class and also mside a mthcd
boch.
about belegtin Event Adel 9
start) stopl)
deatay pead
pcint9(
Stastl)