Nothing Special   »   [go: up one dir, main page]

JAVA (2nd) May2018

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Exam.Codel.

1220
Sub. Code: E605

o m
1058
P.G. Diploma in Computer Applications

r . c
Second Semester
PGD-2101: Object Oriented Concepts using JAVA

Time allowed: 3 Hours


p e m
Ma.r. Marks:60

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)

||. a) What is the role of classes in an object oriented programming languages?


example'
Differentiate between a class and an object with the help of a suitable
(6,6)
b) what is method overloading in Java? Explain with an example.

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.

b) Explain life cycle of thread along with diagram. (6,6)

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)

IX. Attempt the following:-

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)

You might also like