Semester : SEMESTER 4
Subject : Object Oriented Design and Programming
Year : 2018
Term : DECEMBER
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 206
Page:2
11
12
13
14
15
16
17
18
19
20
a)
b)
$2012 Pages: 2
List the sub-classes of Writer and Reader character oriented stream classes
Draw the lifecycle of a thread showing the different states and methods invoked.
PART D
Answer any two full questions, each carries 9 marks.
Differentiate between Abstract class and Interface
Explain the scenario under which the following three exceptions occur,
NumberFormatEx ception, ArithmeticException, and
ArrayIndex OutOfBoundsException.
Write a java program to create two threads, one for writing odd numbers and
another for writing even numbers up to 100 into two different files.
What are the uses of “synchronized” keyword?
Demonstrate how polymorphism can be implemented using method overriding
with suitable example.
What is an exception? Why it needs to be handled?
PARTE
Answer any four full questions, each carries 10 marks.
Explain briefly about the Delegation Event model.
List any five event sources and their corresponding generated event typeand
listeners used.
Describe the different character extraction methods of String class along with
their syntax.
How does an applet differ from a java application?
Write a java program to count the occurrence of a particular word within a
sentence using string handling methods.
Write a java AWT based program to display Fibonacci numbers in a List control
up to a limit entered using TextField. The event handling as well as code for
clearing the components must be provided.
What are the advantages of using Swings?
Explain any three graphics related methods along with their syntax.
Write the steps for connecting a java program to a database, executing a select
query, and fetching the results with sample code.
اد ೫ ೫ اد
Page 2 of 2
(3)
(3)
(4)
(5)
(6)
(3)
(6)
(3)
(5)
(5)
(5)
(5)
(10)
(10)
(4)
(6)
(10)