In which memory a String is stored, when we create a string using new operator?
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.
In which memory a String is stored, when we create a string using new operator?
is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.
Which of the following keywords are used to control access to a class Member?
An abstract class, which declared with the "abstract" keyword, cannot be instantiated. True or False?
"A package is a collection of classes, interfaces and sub-packages" The above statement is true or false?
Which of the following statements is valid array declaration?
Java virtual machine is . Fill in the blank.
Which method is used to set the graphics current color to the specified color in the graphics class?
Java is robust because . Fill in the blank.
Consider the following 2 statements(S1 and S2). (S1) C++ uses compiler only. (S2) Java uses compiler and interpreter both. Above statements are true or false?
What is the length of the application box made by the following Java program? import java.awt.*; import java.applet.*; public class myapplet extends Applet { public void paint(Graphics g) { g.drawString("A Simple Applet", 20, 20); } }
What is qualified association? Describe with an example
What is an object? Why Java is called an object oriented language? Write the difference between procedural oriented programming and object oriented programming.
Explain static keyword with suitable Java code.
What is dynamic method dispatch in Java? Explain with an example.
What is AWT? What is Event Listener?
Discuss the differences between the following: (i) 'throw' and 'throws' clause (ii) final and finally (iii) Abstract classes and Interfaces
Write short notes of the following: (i) Link and Association (ii) Thread Life-Cycle (iii) Abstraction
Write short notes of the following: (i) Dynamic method dispatch (ii) Dynamic binding (iii) Encapsulation
Create a package and write a java file with four methods for four basic arithmetic operations such as addition, subtraction, multiplication and division. These methods should save the file in the package. Write one more program that imports the above file to use those four methods.
(a) What are exceptions? Explain the user defined exceptions and system defined exceptions with suitable examples. (b) Briefly explain the use of "this" and "super" keywords. (c) Difference between '==' operator and "equals" methods in the context of string object.