GTU Computer Engineering (Semester 5)
Object Oriented Programming Using Java
May 2016
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) Explain features of Java.
7 M
1 (b) Explain Thread life cycle and describe creation of thread with suitable example.
7 M

2 (a) Differentiate between Method overloading and Method overriding.
7 M
Solve any one question from Q2(b) & Q2(c)
2 (b) Explain following with example:
i) Finalize()
ii) static
iii) super
iv) final
7 M
2 (c) The abstract vegetable class has three subclasses named Potato, Brinjal and Tomato. Write a java prog. That demonstrates how to establish this class hierarchy. Declare one instance variable of type String that indicates the color of a vegetable. Crete and display instances of these objects. Override the toString() method of object to return a string with the name of vegetable and its Color.
7 M

Solve any two question from Q3(a), Q3(b) & Q3(c), Q3(d)
3 (a) Describe Inheritance and its type with suitable example.
7 M
3 (b) Explain use of Interface with suitable example.
7 M
3 (c) Write a method for computing xy doing repetitive multiplication. X and y are of type integer and are to be given as command line arguments. Raise and handle exception(s) for invalid values of x and y.
7 M
3 (d) Differentiate between interface and abstract class.
7 M

Solve any two question from Q4(a), Q4(b) & Q4(c), Q4(d)
4 (a) List out the steps of preparing domain class model. What are the criteria for identifying right classes?
7 M
4 (b) What do you mean by an event in state diagram? Discuss various types of events.
7 M
4 (c) What do you mean by object-orientation? Briefly discuss the characteristics of object oriented approach.
7 M
4 (d) Explain various steps required for class design.
7 M

Solve any two question from Q5(a), Q5(b) & Q5(c), Q5(d)
5 (a) Prepare a sequence diagram for issuing book in the library management system.
7 M
5 (b) Explain 'ordered', 'bags', 'sequences' in class diagram with suitable examples.
7 M
5 (c) Explain Nested States. Draw the Nested states diagram for the phone line.
7 M
5 (d) Define the following terms:
Aggregation, Abstract Class, Generalization, Reification, Constraints, Package, Metadata.
7 M



More question papers from Object Oriented Programming Using Java
SPONSORED ADVERTISEMENTS