0
1.4kviews
Object Oriented Programming Methodology : Question Paper Dec 2011 - Computer Engineering (Semester 3) | Mumbai University (MU)
1 Answer
0
4views

Object Oriented Programming Methodology - Dec 2011

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) Differentiate between Method Overloading and Method Overriding? (5 marks) 1(b) What is the role of wrapper class? (5 marks) 1(c ) Write short note on Abstract Class. (5 marks) 1(d) Explain static members. (5 marks) 2(a) Write a program to create multiple threads. Demonstrate the use of isAlive(), getName(), setName(), setPriority() and getPriority() methods of Thread Class.(10 marks) 2(b) Write a program to evaluate sum of following series:
1+1/22+1/32+1/42+..+1/n2Take value of N from user input.
(10 marks)
3(a) Write a program to read 5 names of students from command line and store them in vector. Sort the list in alphabetically order and display. (10 marks) 3(b) Write a program to count the frequency of occurrence of a given character of a given line of text. For example the given line is: We are students and eat Eggs.(10 marks) 4(a) How do u define an Exception? Explain how java handles exception during program execution with suitable example. (10 marks) 4(b) What are the benefits of packages? What are java API packages? Write a program to demonstrate the creation and use of package? (10 marks) 5(a) Write a program to display area of square and rectangle using the concept of overloaded constructor. (10 marks) 5(b) Write an applet to display the house as shown below:

(10 marks)
6(a) Explain the difficulty to implement multiple inheritance. How multiple inheritance is supported by java, explain with example?(10 marks) 6(b) How do you define a data type? Explain data types available in java?(10 marks) 7(a) Parameter passing to an applet (5 marks) 7(b) Life cycle of thread.(5 marks) 7(c ) System.arraycopy() method(5 marks) 7(d) Command line arguments (5 marks) 7(e ) Java Access protection(5 marks)

Please log in to add an answer.