adplus-dvertising
frame-decoration

Question

What is the stored in the object obj in following lines of code?

box obj;

a.

Memory address of allocated memory of object

b.

NULL

c.

Any arbitrary pointer

d.

Garbage

Posted under Java Programming

Answer: (b).NULL

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the stored in the object obj in following lines of code? box obj;

Similar Questions

Discover Related MCQs

Q. Which of these keywords is used to make a class?

Q. Which of the following is a valid declaration of an object of class Box?

Q. Which of these operators is used to allocate memory for an object?

Q. Which of these statement is incorrect?

Q. Which of the following statements is correct?

Q. What is the return type of a method that does not return any value?

Q. What is the process of defining more than one method in a class differentiated by method signature?

Q. Which of the following is a method having same name as that of it’s class?

Q. Which method can be defined only once in a program?

Q. Which keyword is used by the method to refer to the object that invoked it?

Q. Which of the following is a method having same name as that of its class?

Q. Which operator is used by Java run time implementations to free the memory of an object when it is no longer needed?

Q. Which function is used to perform some action when the object is to be destroyed?

Q. What is true about private constructor?

Q. What would be the behaviour if this() and super() used in a method?

Q. What is false about constructor?

Q. What is true about Class.getInstance()?

Q. What is true about constructor?

Q. Abstract class cannot have a constructor.

Q. What is true about protected constructor?