Object Oriented Programming Methodology - Dec 2016
Information Technology (Semester 3)
TOTAL MARKS: 80
TOTAL TIME: 3 HOURS (1) Question 1 is compulsory.
(2) Attempt any three from the remaining questions.
(3) Assume data if required.
(4) Figures to the right indicate full marks. 1(a) Explain JAVA Virtual Machine.(5 marks) 1(b) Write a program to diplay factorial of given number. Take input from command line arguments.(5 marks) 1(c) Explain System. Arraycopy () method with example.(5 marks) 1(d) Explain Thread life cycle.(5 marks) 2(a) Explain different ways to create Thread in JAVA with example.(10 marks) 2(b) Differentiate between method overloading and overriding. Write a program to override area () method of Shape class into its subclasses Reactangle and Square. Shape is an abstract class.(10 marks) 3(a) Explain different types of relationships among the entities. Define the relationships among the object of given sentences:
i) Manager is an Employee
2) Teacher teaches OOPM subject to students.
3) Merry owns a car.
4) Engine is a part of car.(10 marks) 3(b) Explain the steps to create package in JAVA to add class and interface with example.(10 marks) 4(a) Explain bitwise operators in JAVA.(4 marks) 4(b) Explain use of final keyword when it is prefix with variable, method and class.(4 marks) 4(c) Explain Cohesion and Coupling.(4 marks) 4(d) Write an applet program to diplay
(4 marks) 4(e) What is abstract class? Explain with example.(4 marks) 5(a) Explain exception handling mechanism with the help of try, catch, throw, throws and finally.(7 marks) 5(b) Department of Computer Engineering wants to maintain record of books. If any new book is purchased then it is added to the list. Also if any book is damaged or misplaced it can be deleted from the list. Write a program to perform above operations and display list of books available in the department.(8 marks) 5(c) Differentiate between String and String Buffer class.(5 marks) 6(a) Explain inheritane and its types in JAVA.(5 marks) 6(b) Explain wrapper class.(5 marks) 6(c) Write a program to diplay sum of main diagonal elements of matrix.(5 marks) 6(d) Explain Applet lifecycle methods.(5 marks)