Semester : SEMESTER 4
Subject : Object Oriented Design and Programming
Year : 2017
Term : JUNE
Branch : COMPUTER SCIENCE AND ENGINEERING
Scheme : 2015 Full Time
Course Code : CS 206
Page:2
1) 840372 Pages: 2
b. Give an outline of the java implementation of the class diagram shown below.(3.5)
-Model: String
നന്ന >| -Price : float
+BuyCar(in newCar: Car) 0.4 *
c.) What are the various ways of using import statement? (4.5)
14. Summarize the Character stream classes with the help of class hierarchy diagram. (9)
PART E Answer any four
of the following questions
15. a. Write short notes on any four methods of String class. (8)
0. What is the difference between using “==” and equals() method when comparing
string type? (2)
16. a. Differentiate between an Applet and a Frame. (5)
b. Write a java program using JOBC API to verify the login credentials of a user. (5)
17. a. Explain the Delegation Event Model. (5)
b. Identify two event types each generated by a Button, TextField, Checkbox, and
Frame. (5)
18. Write an AWT based Java program to implement a basic calculator. (10)
19. a. Summarize any three features of Swing API. (5)
b. List any four Containers and Component classes of Swing API. (4)
20. a. Write an applet based java program to add two numbers. (5)
b. Explain the steps using Java code for correcting a Java program to a data base using
JDBC API. (5)