You are on page 1of 2

Roll No

[tctal No.of Questions;


09] [Total No. of Pages:02]
B. Tech (Inlu'rmation Technotogy)
Programming in Java
Subject Code: BTIT- 502
PaperID-2 123

Time:3 hrs MM:60


Instructionsto the students:

1) sectionA is compulsoryconsistingof ren questionscarrying Two marks each

om
2) SeltionB: ContainsFive QuesfionscarryingFive markseach,attemptant Four questiotrs
3) sectionc: contains ThreeeuestionscarryingTen marks each,attemptant Tlyo question

.c
SectionA IAX2

s
al)
a, list anyfivefeaturesofJava?
es
pr
b. Whatisa Multithreading?
c. WhatisAbstraction?
ex

d, Namethe methodsof Scanner classthat:


i) is usedto inputan integerdatafromstandard
ar

inputstream.
ii) isusedto inputa stringdatafromstandardinputstream.
ol

e. Explain the usageofthisflwith constructors?


f. Whatisfinalclass?
ch

g. Whatisthe difference betweenstaticandnon-static


variables?
h. Whatisthe purposeof the wait(),notifu{),andnotifyAllflmethods?
.s

i. Whenthrowkeywordis used?
w

j. Ufecycleofan appletincludes whichsteps?


w
w

Section
B 4 Xs
1' write a Program usingthe conceptof Inheritance, the Totalmarks,percent4e
calculate
andGrades of the Students.
Createdifferentmethodsfor eachdetail.
2. WhatisoperatorOverridding? Writethe program to demonstrate
the conceptof Overridding
3. Explainthe terms:
i. Static
ii, Super
4. WritetheSyntaxof following:
i. Try-catch
ii. Forloop
5' Differentiate
between extendsandimprementg
withsuitabre
exampre"
SectionC ZX1O
5. Explainthefollowing
keywords withexample:
i. Finally
ii. Throw
iii. Finalize

om
iv. Socket
7. Whatisthread?Howdo wesetthepriorities of thread?Describe
withexampre.
8' i'whatis Exception?
Listdifferenttypesof Exceptions.

.c
How Exceptionsarehandled
in Java?

s
ii.Writea programin javato reversea string.

es
pr
ex
ar
ol
ch
.s
w
w
w

You might also like