Semester : SEMESTER 4
Subject : Object Oriented Design and Programming
Year : 2020
Term : SEPTEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 206
Page:2
12
13
14
15
16
17
18
19
20
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
a)
b)
02000CS206052002
PART 0
Answer any two full questions, each carries 9 marks.
What are packages? Illustrate package hierarchy in java with the help of an
example
Compare and contrast abstract classes and interfaces
Explain in detail how exception handling mechanism used in Java using
‘throw’ and ‘throws’
Write a Java program to read characters from the console using
BufferedReader class
Explain the different ways of creating a thread.
What are synchronized blocks? Explain with an example
PART E
Answer any four full questions, each carries 10 marks.
Discuss the security restrictions imposed on running Java applets
Write an applet program that accepts two input string as parameters,
concatenate the strings and display it in status window.
Explain the working of Delegation Event Model.
List out the various event sources and their corresponding listeners.
Outline the lifecycle of an Applet.
Discuss the differences between Java Applets and Java Applications
Differentiate between String and StringBuffer classes.
Discuss with proper examples, how we can create new colors and fonts in an
AWT program
Write an AWT program to create a Calculator with basic arithmetic operations
Explain the steps using for connecting a Java program to a database using
JDBC API with a proper example.
Page 2 of 2
nn +> ൭ +> ہی
10
10