Object Oriented Programming Methodology - Dec 2016
Computer Engineering (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 display 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 overloding and overriding. Write a program to override area ( ) method of Shape class into its subclasses Rectangle and Square. Shape is an abstract class.(10 marks) 3(a) Explain different types of relationships among the entities. Define the relationships among the objects of given sentences:
1) Manager is an Employee.
2) Teacher teaches OOPM subject to students.
3) Merry owns a car.
4) Engine is a parts 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 display