GTU Information Technology (Semester 5)
Object Oriented Programming With Java
December 2015
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) Write a program that creates and initializes a four integer element array. Calculate and display the average of its values.
7 M
1(b) Write a java program to do sum of command line argument passed two Double numbers.
7 M

2(a) Define time class with hour and minute. Also define addition method to add two time objects
7 M
Solved any one question from Q.2(b) & Q.2(c)
2(b) Explain use of Linked List collection class with example.
7 M
2(c) Write a program to create circle class with area function to find area of circle.
7 M

Solved any one question from Q.3 & Q.4
3(a) With example explain use of finally in exception handling.
7 M
3(b) Write an application that searches through its command- line argument. If an argument is found that does not begin with and upper case letter, display error message and terminate.
7 M

4(a) Explain garbage collection and finalize method in JAVA.
7 M
4(b) Explain use of throw in exception handling with example.
7 M

Solved any one question from Q.5 & Q.6
5(a) Explain constructor overloading using example
7 M
5(b) Explain multi threading in java using example.
7 M

6(a) Explain method overriding with example.
7 M
6(b) Write an application that reads a file and counts the number of occurrences of digit 5. Supply the file name as a command-line argument.
7 M

Solved any one question from Q.7 & Q.8
7(a) Draw use case diagram for Library Management System.
7 M
7(b) Draw class diagram for online restaurant system.
7 M

8(a) Draw sequence diagram for book issue process of library.
7 M
8(b) Draw class diagram for ATM.
7 M



More question papers from Object Oriented Programming With Java
SPONSORED ADVERTISEMENTS