Semester : SEMESTER 8
Subject : OBJECT ORIENTED PROGRAMMING
Year : 2019
Term : MAY
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 486
Page:1
Reg No.:
Max. Marks: 100
11
12
13
14 ஐ
b)
H1069 Pages: 2
Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
EIGHTH SEMESTER B.TECH DEGREE EXAMINATION, MAY 2019
Course Code: CS486
Course Name: OBJECT ORIENTED PROGRAMMING
PARTA
Answer all questions, each carries 4 marks.
What is polymorphism in Java?
What is the difference between thread and process?
How arrays are declared and accessed in Java?
What do you mean by constructor overloading?
Show using Java code how three threads can be created using Runnable
interface.
What are the different keywords used in exception handling?
Explain the usage of static variables in Java with an example.
Write a Java program to check whether a given number is prime or not.
Explain the methods and events associated with the Scrollbar component.
Write a note on adapter classes?
PART B
Answer any two full questions, each carries 9 marks.
Explain the various access control keywords in Java. Write the modifier access
rules.
Write a Java program to calculate the area of different shapes namely circle,
rectangle and triangle which illustrates the concepts of (i) method overloading
(ii) default constructor.
Explain the features of Java.
PART (^
Answer any two full questions, each carries 9 marks.
What is the use of import statement in Java?
What do you mean by character stream? Name any 3 classes in this stream and
Page lof 2
Duration: 3 Hours
Marks
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(4)
(9)
(9)
(9)
(3)
(6)