JVM is
Official theoretical question paper for Object Oriented Programming (PCC-CS503) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
JVM is
Out of the following which one is not correctly matched?
In System.out.println, out is
Constructor can be overloaded
Scanner class resides in
Which one of the following statements is wrong?
What is the correct ordering for the import, class and package declarations where found in a single file?
Stack overruns
What is the output of this code fragment? 1. int x = 3 int y = 10; 2. System.out.println(y % x);
Which of the following statements is not correct?
The wait() and notify() methods are used to perform
Which one of the following is wrong?
What is parametric and non-parametric constructor? Explain with suitable example.
How does string class differ from string buffer class? Explain with example.
What is the difference between 'error' and 'exception'? What are the benefits of organizing classes into packages?
Discuss the Applet life-cycle indicating the functions.
What is difference between final, finally and finalize in java? What do you mean by Garbage Collection in java?
(a) What do you mean by parameter passing? (b) What is the difference between call by value or pass by value and call by reference or pass by reference? Explain. (c) What is 'this' keyword? Give suitable example.
(a) What are the differences between Method Overloading and Method Overriding? (b) Explain Dynamic Method Dispatch with suitable example. (c) Write a program to access static variable and static method to explain 'static' keyword properly.
(a) What are mutable strings? (b) How many types of Inheritance in java? (c) How can you create your own package and add classes in that? Explain with the help of an example. (d) Explain with the help of an example, how java gets benefited by using Interface.
(a) What is multithreading? What is the difference between creation of user thread by extending thread class and implementing Runnable interface? Which one is better? Explain. (b) What is thread synchronization? Why is it needed? (c) Describe the differences between an Applet and Application. (d) List various attributes of Applet tag used in HTML.
(a) Write short notes on any three of the following: (b) Wrapper Class (c) Link and Association (d) Thread Life-Cycle (e) Co-Variant Return.