Semester : SEMESTER 2
Subject : Object Oriented Programming
Year : 2017
Term : APRIL
Branch : MCA
Scheme : 2016 Full Time
Course Code : RLMCA 102
Page:1
A
Reg. No. Name:
C2A002 Pages:2
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
SECOND SEMESTER MCA DEGREE (REGULAR) EXAMINATION APRIL/MAY 2017
Course Code: RLMCA102
Course Name: OBJECT ORIENTED PROGRAMMING
Max. Marks: 60
10.
11.
Duration: 3 Hours PART A
Answer All Questions, Each Question Carries 3 Marks.
Differentiate between method overloading and method overriding.
Explain the significance of ‘this’ and ‘final’ keyword with proper code fragments.
Explain how instance variables of a super class are initialized by a sub class constructor
with an example.
Explain the principle of dynamic method dispatch used in Java. Write an example.
Differentiate between String class and String Buffer class. Write any two methods and
its use in the String class and String Buffer class.
Write a Java program to throw an exception if the number interactively accepted is not
a positive one.
Define object serialization. List the fields that cannot be serialized.
Write the four constructors used by DatagramPacket class and their uses.
PART B
Answer any one question from each module. Each question carries 6 marks
MODULE - I
a. Differentiate between Procedure Oriented and Object Oriented Programming. (4)
b. Explain why Java is called a Platform Independent Language. (2)
OR
Explain how constructors are overloaded with an example. MODULE - II
Design an application to display details of different types of publications- magazine,
books and kids magazine. A publication has a publisher, no: of pages, a price and a title.
A magazine is a kind of publication that has a publication unit monthly, weekly and bi-
weekly. A book is a kind of publication that has an author. A kid’s magazine is a kind
of magazine that has a recommended age rate. Display the information sorted by title
about a particular object.
OR
Page 1 of 2