Sie sind auf Seite 1von 2

22919 22919 22919 22919 22919 22919 22919 22919 22919

22919 Roll No.


22919 22919 22919 22919 22919 Total22919
No. of Pages
22919 : 02 22919

Total No. of Questions : 09


M.Sc. (IT) (2015 Onwards) (Sem.–4)
22919 22919 22919 22919 22919 22919 22919 22919 22919
ADVANCED JAVA PROGRAMMING
Subject Code : MSIT-401
Paper ID : [74113]
22919 22919 22919 22919 22919 22919 22919 22919 22919
Time : 3 Hrs. Max. Marks : 60

INSTRUCTIONS TO CANDIDATES :
22919 22919
1. 22919
SECTIONS-A, B, C &22919
D contains 22919
T WO questions 22919each carrying
22919 T EN marks
22919 each 22919

and students have to attempt any ONE question from each SECT ION.
2. SECTION-E is COMPULSORY consisting of T EN questions carrying T WENT Y
marks in all.
22919 22919
3. 22919 22919
Use of non-programmable 22919 calculator
scientific 22919
is allowed. 22919 22919 22919

SECTION-A
22919 22919

1.
22919 22919 22919

o m 22919 22919 22919

Define Thread and Multithreading. Explain the states in the lifecycle of a thread in Java.
22919

22919 2.
22919 Explain22919
the following22919 .r c
with examples22919
: 22919 22919 22919 22919

a) Daemon threads
p e m
pa o
.r c
22919 22919 22919 22919 22919 22919 22919 22919 22919
b) Atomic variables

22919 22919 22919


br 22919
SECTION-B
22919

p e
22919 22919 22919 22919

3.
a
What is a Stream in Java? What are the characteristics of a stream? Discuss the Input and
Output Stream hierarchy in Java.
p
22919 22919
4.
22919 22919 22919

br 22919 22919 22919


What is Serialization? What are its advantages? Explain serialization and deserialization
22919

with the help of Java code.

22919 22919 22919 22919 22919 22919 22919 22919 22919


SECTION-C

5. What is JDBC? Explain various classes of JDBC drivers. Also write typical uses of
22919 22919
JDBC. 22919 22919 22919 22919 22919 22919 22919

6. What is Transaction? Explain with an example transaction management in JDBC using


Prepared Statement.
22919 22919 22919 22919 22919 22919 22919 22919 22919

22919 1|M
22919 c o d e - 722919
4113 22919 22919 22919 22919 ( S 22919
6)-380 22919

22919 22919 22919 22919 22919 22919 22919 22919 22919


22919 22919 22919 22919 22919 22919 22919 22919 22919

SECTION-D
22919 22919 22919 22919 22919 22919 22919 22919 22919

7. What is a Java Beans? What are the advantages of using Java Beans? Also explain
JavaBeans API.
22919 22919 22919 22919 22919 22919 22919 22919 22919
8. What are Generics in Java? What is its importance? Discuss the implementation of
various types of generics with examples.
22919 22919 22919 22919 22919 22919 22919 22919 22919
SECTION-E

9. Answer the following in brief :


22919 22919 22919 22919 22919 22919 22919 22919 22919
a) What do you mean by thread synchronization?

b) What are Callables and Futures?


22919 22919 22919 22919 22919 22919 22919 22919 22919

c) What are Semaphores? What is their use?

22919 22919 d) What is a Transaction?


22919 22919 How is a22919

o m
transaction managed?
22919 22919 22919 22919

.r c
e) Explain Java's Scanner class with an example.
22919 22919 22919 22919 22919 22919 22919 22919 22919
f) How security is provided in Object Serialization?

p e m
g) What is Reflection API used for?

pa o
.r c
22919 22919 22919 22919 22919 22919 22919 22919 22919

br
h) What is the use of Type Erasure in a Java program?

22919 22919
i) What are Marker annotations?
22919 22919 22919

p e
22919 22919 22919 22919

j) How annotations are created in a Java program?


p a
22919 22919 22919 22919 22919

br 22919 22919 22919 22919

22919 22919 22919 22919 22919 22919 22919 22919 22919

22919 22919 22919 22919 22919 22919 22919 22919 22919

22919 22919 22919 22919 22919 22919 22919 22919 22919

22919 2|M
22919 c o d e - 722919
4113 22919 22919 22919 22919 ( S 22919
6)-380 22919

22919 22919 22919 22919 22919 22919 22919 22919 22919

Das könnte Ihnen auch gefallen