GTU Computer Engineering (Semester 5)
Object Oriented Programming Using Java
June 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) List various features of Java? Also explain any two feature with example.
7 M
1 (b) Compare Object oriented programming with sequential programming.
7 M

2 (a) What is visibility modifier? Explain all with example.
7 M
2 (b) What is package? List various built in package used in java.
7 M
2 (c) What is Thread? Draw and explain life cycle of thread.
7 M

3 (a) Write a program which shows an example of function overloading?
7 M
3 (b) What is error? Explain various types of errors. How can we handle run time errors in java?
7 M
3 (c) Write a program which shows an example of function overriding?
7 M
3 (d) Compare String with StringBuffer class.
7 M

4 (a) What is variable? How can we define variable in java? Also list rules for valid variable names.
7 M
4 (b) What is constructor? What are the rules for creating constructor in java?
7 M
4 (c) Explain inheritance with its types and example.
7 M
4 (d) How interface are useful in Java? Explain with example.
7 M

5 (a) What are final class, final function and final variable in Java? Explain with Example.
7 M
5 (b) Explain following key words: this, super, instance of
7 M
5 (c) Compare Java Applets with application programs.
7 M
5 (d) How can we open and read a text file in Java? Explain your answer with example.
7 M



More question papers from Object Oriented Programming Using Java
SPONSORED ADVERTISEMENTS