JAVA (2nd) May2018
JAVA (2nd) May2018
1220
Sub. Code: E605
o m
1058
P.G. Diploma in Computer Applications
r . c
Second Semester
PGD-2101: Object Oriented Concepts using JAVA
a
NOTE: Attempt "five questionq in all, inctuding Question No.
p
and seleci:ting one question eachfrom Unit I'IV'
c o
IX (Unit'y) which is compulsory
r x-x-x
r .
b UMT-I
p e
L
p a
a) Java is object-oriented. What are the advantages of object-oriented
compared to procedural oriented programming?
programming
b r
toop ana ao while loop with the help of a program unitten inJava
while
b) Briefly describe the control structures used in Java. Distinguish berween(6,6)
UNIT-JI
m. a) what is Inheritanc.t r*phinffiotugrs. Also explain
with exarnple how a
subclass is derived from a sup€r class in Java'
integer in an
b) What is an array in Java? Write a ftava program to find the largest (6,6)
array.
ry. a) Explain the use of final keyword with variable, method and class, by taking
examples.
_
b) Define class scope. Describe the private, protecEd *nd pblic scope
the help of a Java pro$am. (6,0
UNIT - III
v. a) What is a String class? Explain any three constructors of String class.
u. a)What is interface in Java? Explain the need of it. Explain with Java program.
b) What is a package in Java, and how are packages used? Give an exanrple of one of
m
the standard packages that are part of Java.
o
tINIr - ry
(6,6)
vII. .r c
What is the need of exception handling? Explain the use of S-catch block in
e
exception handling with the help of a Java program.
p m
(r2)
\mr.
a o
List four differences between a Java application program and Java applet progruum,
p .r c
with an exarnple of each type of program. Explain the life cycle of applet, briefly
b r
describing all its methods.
T]NIT -V e
(12)
a p
a) What are the various data types supported by Jav{?
b) What is JVM?
c) What is method overriding? r p
d) What is multithreading? b
e) How do you compute the length of an array?
0 What is a bitwise operator in Java? (6Ya)