APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY Previous Years Question Paper & Answer

Course : MCA

Semester : SEMESTER 2

Year : 2018

Term : APRIL

Branch : MCA

Scheme : 2016 Full Time

Course Code : RLMCA 102

Page:2





PDF Text (Beta):

A AC201 Pages: 3

OR

12. Design classes Square, Rectangle and Triangle that encapsulates three geometric
shapes. Each class should implement anabstract method void area (int x, int y) that
finds the area of three shapes respectively. The variables should be declared in the
super class and initialized through sub class constructors. Develop the main class to
create and test the objects of classes Square, Rectangle and Triangle.

MODULE - 111
13. a. List and explain Java System packages. (3)
b. Differentiate between String class and String Buffer class. (3)
OR
14. a. A restricted form of multiple inheritance is provided in Java. Justify. (2)
b. List the different string constructors used for creating string objects. (4)
MODULE - IV
15. a. Differentiate between checked and unchecked Exceptions. (4)
b. Write a Java program to throw an exception if a searched item is not present in the
list. (2)
OR
16. a. Explain how a thread can be blocked. (4)
b. Predict the output and justify your answer. (2)

import java.io.*;
public class UsingFinally
{
publicint add(int a, int b)
{ try {
return
(a+b);
} finally
{ return
0; } }
public static void main (String args[])

{

Page 2 of 3

Similar Question Papers