Illlfllililflflrflfililrflilflut
z6
NP - 27A
I Semester B.A-/8. Sc. Exami nation, February/Ma rch 2A24
II
s-
NFP) (F+R)
COMPUTER SCIENCE
Object Oriented Prograrnming using Java
Time :21/z Hours Max. Marks : 60
lnstruction : Answer all the Parts.
PART _ A
:,* \
l. Answer any four questions. Each que@n carries ._iIL
(4x2=$)
1) What is inheritance ? '%
.i
2) Define constructor. Give an example.
3) Explain the features of Java.
4) What are unary operators ?
5) What is an applet ?
6) What are exceptions ?
, PART-B
ll. Answer any four questions. Each question carries five marks. (4x5=20)
7) Explain the features of object oriented programming.
8) Bring out the differences between C programming and Java programming.
9) Explain methodpveriding with an example.
10) What are iteration statements ? Explain with an example.
11) EXplain the life cycle of a thread with a neat diagram.
12) What is the layout manager in Java ? Explain any two layouts briefly.
PART _ C
lll. Answer any four questions. Each carries eight marks. (4x8=32)
13) a) Explain all the access specifiers in Java. ,4
b) Write a note on Java data types. 4
P.T.O.
NP - 270 ffirflffi]iltflflltflfllflllil
14) Write a note on event handling'in Java. g
15) Explain applet life cycle with neat diagram. g
16) a) Explain any five methods of graphic class with an exampre. s
b) Mention any six GUI components in Java. g
17) a) Explain string methods in detail with an example. 6
b) Write difference between string and string butfer. 2
1s) a) what is package ? write a simple program and exprain the steps to
create a package. 6
b) Define user defined package. 2
j,'' I
'J
t,
/'b
fl
'r.,,f)