[go: up one dir, main page]

0% found this document useful (0 votes)
18 views8 pages

Java Imp

Uploaded by

akhilsravan14i
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)
18 views8 pages

Java Imp

Uploaded by

akhilsravan14i
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/ 8

UNI

T-1Quest
ions
1.Expl
aint
hefoll
owingwi
thanexamplepr
ogram
(i
)El
ementsorTokensi
nJavaProgr
ams(ii
)UserI
nputt
oPr
ogr
ams.

2.Expl
aint
hef
oll
owi
ngwi
thanexampl
epr
ogr
am

(
i)
Dat
aTy
pesi
nJav
a(i
i
)Ty
peCast
ing(
ii
i)
Lit
eral
Const
ant
s

3.Writ
e aboutPrecedence and Associ
ati
vi
tyofOper
ator
s wi
th an
exampleprogr
am.

4.Expl
ainv
ari
ousCont
rol
Stat
ement
swi
thanexampl
epr
ogr
am

5.Expl
aint
hef
oll
owi
ngwi
thanexampl
epr
ogr
am.

(
i)
Formatt
edOutputwi
thpr
int
f()Met
hod(
ii
)St
ati
cVar
iabl
esandMet
hods
(
ii
i)
Att
ri
buteFi
nal
.

6.(
i)
Expl
ainv
ari
ousKeyWor
dsav
ail
abl
einJav
a

(
ii
)Why‘
mai
n()
’met
hodi
sdecl
aredaspubl
i
cst
ati
cinJAVApr
ogr
ammi
ng?

7.Expl
aint
hef
oll
owi
ngwi
thexampl
es

8.(
i)
Dat
aTy
pesi
nJav
a(i
i
)Ty
peCast
ing(
ii
i)
Lit
eral
Const
ant
s

9.(i
)Wri
teaJavaPr
ogr
am t
otestwhet
heragi
venchar
act
eri
sVowel
or
Consonant

(
ii
)Whati
sther
oleandr
esponsi
bil
i
tyofJVM i
npr
ogr
am execut
ion?

10. Di
scusst
her
ulesi
nAut
omat
icTy
pePr
omot
ioni
nExpr
essi
ons.[
7M]

11. Whatisobjector
ient
edpr
ogr
ammi
ng?Howdoesi
tdi
ff
erf
rom
procedur
alconcepts?

12.Expl
aini
ndet
ail
aboutJav
aBuzzwor
ds(
or)Jav
afeat
ures(
or)
char
act
eri
sti
cs.
UNI
T-2Quest
ions
1.Expl
aint
heconceptofmethodover
loadi
ngwi
thanexamplepr
ogr
am.
2.Expl
aint
heuseof‘thi
s’key
wordwit
hanexamplepr
ogram

3.Expl
aint
heconceptofcal
lbyr
efer
encewi
thanexampl
epr
ogr
am

4.Expl
aint
heconceptofcal
lbyv
aluewi
thanexampl
epr
ogr
am

5.Expl
aint
heconceptofNest
ingofMet
hodswi
thanexampl
e.

6.Wr
it
eaJav
aPr
ogr
am t
oswapt
wonumber
susi
ngbi
twi
seoper
ator
.

7.Expl
aint
heconceptofconst
ruct
orov
erl
oadi
ngwi
thanexampl
e.

8.Expl
aintheconceptofI
nhi
bit
ingI
nher
it
anceofCl
assusi
ngf
inalwi
tha
sui
tabl
eexample.

9.Expl
ainthe conceptofnest
ed cl
asses-
innerand st
ati
c cl
asses wi
th
exampl
es.

10.Expl
aint
heconceptofAccessi
ngPr
ivat
eMember
sofCl
asswi
thasui
tabl
e
example?

11.Expl
aintheusageofconst
ruct
orandt
ypesofconst
ruct
orsi
nJav
awi
th
suit
ableexamples?

12.Expl
aintheconceptofnest
edcl
asses-
Anony
mousandl
ocal
classeswi
th
examples.

13.
Whatdoesitmeant hatamet hodorclassi
sabstr
act
?Canwemakean
i
nst
anceofanabst
ractclass?Expl
aini
twit
hexampl
e.
14.
WhatisConstruct
ori
njava?Whyconst
ruct
ordoesnothav
eret
urnt
ypei
n
j
ava?Expl
aini
twithpr
operexampl
e.

UNI
T-3Quest
ions
1.Expl
ainDecl
arat
ionandI
nit
ial
i
zat
ionofAr
ray
sandSt
orageofAr
rayi
n
ComputerMemor ywi
thanexample?

2.(i
)Expl
ainthe conceptOper
ati
ons on Ar
ray El
ement
s wi
th an
example.

(
ii
)Expl
aint
heconceptAr
ray
sofVar
yingLengt
hs,
wit
hanexampl
e?

3.Writ
eaj av
apr
ogr
am f
orI
nser
ti
onSor
tandexpl
ainwi
thsui
tabl
e
exampl
e?

4.Expl
aintheconceptofAssi
gni
ngAr
rayt
oAnot
herAr
raywi
than
example.
5.Expl
ainthe conceptofDy
nami
c Change ofAr
raySi
ze wi
th an
example.

6.Expl
aint
heconceptofThr
ee-
dimensi
onal
Arr
ayswi
thanexampl
e.

7.Writ
eaj av
apr
ogr
am f
orSel
ect
ionSor
tandexpl
ainwi
thsui
tabl
e
exampl
e?

8.Expl
aint
heconceptofAccessi
ngEl
ement
sofAr
ray
swi
thanexampl
e.

9.Expl
aint
heconceptofAr
ray
sasVect
orswi
thanexampl
e.

10. Writ
eaj
ava pr
ogr
am f
orQui
ck Sor
tand expl
ain wi
th sui
tabl
e
exampl
e?.

11. Writ
eaj
avapr
ogr
am f
orLi
nearSear
chandexpl
ainwi
thsui
tabl
e
exampl
e?

12. Writ
eaj
avapr
ogr
am f
orBubbl
eSor
tandexpl
ainwi
thsui
tabl
e
exampl
e?

13. Writ
eaj
avapr
ogr
am f
orBi
nar
ySear
chandexpl
ainwi
thsui
tabl
e
exampl
e?

14. Expl
aint
heconceptofTwo-
dimensi
onal
Arr
ayswi
thexampl
es?

15. Expl
ainaboutSi
ngl
eInher
it
ancewi
thanexampl
e?

16. Expl
ainaboutDy
nami
cMet
hodDi
spat
chwi
thanexampl
e?

17. Expl
ainaboutNest
edI
nter
faceswi
thanexampl
e?

18. Expl
ainaboutMul
til
evel
Inher
it
ancewi
thanexampl
e?

19. Explai
naboutSuperkey
wor dandwr
it
eapr
ogr
am f
ormet
hod
over
ri
dingusi
ngsuperkeyword?

20. Expl
ainaboutI
nhi
bit
ingI
nher
it
anceofCl
assUsi
ngFi
nal
wit
han
exampl
e?

21. WhatisanInt
erf
ace?Wr i
tesi
mil
ari
ti
esanddi
ssi
mil
ari
ti
es
bet
weenInt
erf
acesandclasses?

22. Expl
ainaboutMul
ti
pleI
nter
faceswi
thanexampl
e?
Wr
23. i
teaJav
aPr
ogr
am t
omul
ti
plyt
womat
ri
ces.

UNI
T-4Quest
ions
1.Defi
nePackage.Expl
ainaboutI
mpor
ti
ngPackagesandCl
assesi
nto
Progr
amswi t
hanexampl e?

2.Expl
ainaboutPat
handCl
assPat
hwi
thanexampl
e?

3.Expl
ainaboutJav
a.l
angPackageandi
tsCl
asses,
ClassObj
ectwi
th
anexample?

4.Expl
ainaboutEnumer
ati
onwi
thanexampl
e?

5.Expl
ainaboutt
hecl
assMat
hwi
thanexampl
e?

6.Expl
ainaboutWr
apperCl
asses,
Aut
o-boxi
ngandAut
o-unboxi
ngwi
th
anexample?

7.Expl
ainaboutJav
aut
ilCl
assesandI
nter
faceswi
thanexampl
e?

8.Expl
ainaboutFor
mat
terCl
assandi
tsmet
hodswi
thanexampl
e?

9.Expl
ainaboutRandom Cl
asswi
thanexampl
e?

10. Expl
ainaboutTi
mePackage,
ClassI
nst
ant(
jav
a.t
ime.
Inst
ant
)
wit
hanexample?

11. Expl
ainaboutFor
mat
ti
ngf
orDat
e/Ti
mei
nJav
awi
than
exampl
e?

12. Expl
ainaboutHi
erar
chyofSt
andar
dExcept
ionCl
asseswi
than
exampl
e?
13. Expl
ainaboutKeywor
dst
hrowsandt
hrow,
try
,cat
ch,
andf
inal
l
y
Blockswit
hanexampl e?

14. Expl
ainaboutMul
ti
pleCat
chCl
auseswi
thanexampl
e?

15. Expl
ainaboutUncheckedExcept
ionswi
thanexampl
e?

16. Expl
ainaboutCheckedExcept
ionswi
thanexampl
e?

17. Expl
ainaboutt
heconceptoft
ry-
wit
h-r
esour
ceswi
than
exampl
e?

18. Expl
ainaboutCat
chi
ngSubcl
assExcept
ionwi
thanexampl
e?

19. Expl
ainaboutCust
om Except
ionswi
thanexampl
e?

20. Expl
ainaboutNest
edt
ryandcat
chBl
ockswi
thanexampl
e?

21. Wr
it
ethebenef
it
sofpackagesandi
nter
faces.

22. Whataret
headvant
agesofusi
nganExcept
ionhandl
i
ng
mechani
sm i
naprogr
am?

23. Wri
teaj
avaprogr
am t
hatdemonst
rat
eshowcer
tai
nexcept
ion
t
ypesar
enotal
lowedtobe thrown.

Howcanweaddacl
24. asst
oapackage?Wr
it
eaboutr
elat
iveand
absol
utepat
hs.

UNI
T-5Quest
ions
1.Whatisastri
ngandwhataret
hecl
assesav
ail
abl
etocr
eat
est
ri
ng.
Expl
ainabouti
mmutabi
li
ty?

2.Expl
ainaboutI
nter
faceCharSequencewi
thanexampl
epr
ogr
am?

3.Explai
naboutCl
assSt
ri
ng,Methodsf
orExt
ract
ingChar
act
ersf
rom
Str
ingswit
hanexamplepr
ogram?
4.ExplainaboutMet
hodsf
orCompar
isonofSt
ri
ngswi
thanexampl
e
program?

5.ExplainaboutMet
hodsf
orModi
fyi
ngSt
ri
ngswi
thanexampl
e
program?

6.ExplainaboutMet
hodsf
orSear
chi
ngSt
ri
ngswi
thanexampl
e
program?

7.Expl
ainaboutCl
assSt
ri
ngBuf
ferwi
thanexampl
epr
ogr
am?

8.Expl
ainaboutCl
assSt
ri
ngBui
l
derwi
thanexampl
epr
ogr
am?

9.Whati
sMult
it
hreadedProgramming?Expl
ainNeedforMulti
ple
Thr
eadsMul
ti
threadedProgrammingf
orMulti
-cor
eProcessor?

10. Expl
ainaboutThr
eadCl
assandmet
hodsofThr
eadcl
asswi
th
anexampl
eprogram?

11. Expl
ainaboutMai
nThr
eadwi
thanexampl
epr
ogr
am

12. Expl
ainaboutCr
eat
ionofNewwi
thanexampl
epr
ogr
am

13. Expl
ainaboutThr
eads,
Thr
eadSt
ateswi
thanexampl
epr
ogr
am

14. Expl
ainaboutThr
eadPr
ior
it
ywi
thanexampl
epr
ogr
am

15. Expl
ainaboutSy
nchr
oni
zat
ionwi
thanexampl
epr
ogr
am

16. Expl
ainaboutDeadl
ockandRaceSi
tuat
ionswi
thanexampl
e
progr
am

17. Expl
ainaboutI
nter
-t
hreadCommuni
cat
ionwi
thanexampl
e
progr
am

18. Expl
ainaboutSuspendi
ng,
Resumi
ng,
andSt
oppi
ngofThr
eads
wit
hanexampleprogram

19. Expl
ainaboutJav
aDat
abaseConnect
ivi
tymodel
?

20. Expl
ainaboutJDBCAr
chi
tect
ure?

21. Expl
ainaboutI
nst
all
i
ngMy
SQLandMy
SQLConnect
or/
J?

22. Expl
ainaboutJDBCEnv
ironmentSet
up?
23. Expl
ainaboutEst
abl
i
shi
ngJDBCDat
abaseConnect
ions?

24. Expl
ainaboutResul
tSetI
nter
face?

25. Di
scusst
hepr
ocedur
eCr
eat
ingJDBCAppl
i
cat
ion?

26. Expl
ainJDBCTr
ansact
ionManagementi
ndet
ail
.

You might also like