Object Oriented Programming Using Java - Jun 2015
Computer Engineering (Semester 5)
TOTAL MARKS: 100
TOTAL TIME: 3 HOURS (1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks. 1 (a) List various features of Java? Also explain any two feature with example.(7 marks) 1 (b) Compare Object oriented programming with sequential programming.(7 marks) 2 (a) What is visibility modifier? Explain all with example.(7 marks) 2 (b) What is package? List various built in package used in java.(7 marks) 2 (c) What is Thread? Draw and explain life cycle of thread.(7 marks) 3 (a) Write a program which shows an example of function overloading?(7 marks) 3 (b) What is error? Explain various types of errors. How can we handle run time errors in java?(7 marks) 3 (c) Write a program which shows an example of function overriding?(7 marks) 3 (d) Compare String with StringBuffer class.(7 marks) 4 (a) What is variable? How can we define variable in java? Also list rules for valid variable names.(7 marks) 4 (b) What is constructor? What are the rules for creating constructor in java?(7 marks) 4 (c) Explain inheritance with its types and example.(7 marks) 4 (d) How interface are useful in Java? Explain with example.(7 marks) 5 (a) What are final class, final function and final variable in Java? Explain with Example.(7 marks) 5 (b) Explain following key words: this, super, instance of(7 marks) 5 (c) Compare Java Applets with application programs.(7 marks) 5 (d) How can we open and read a text file in Java? Explain your answer with example.(7 marks)