Examveda

What is not the use of "this" keyword in Java?

A. Passing itself to another method

B. Calling another constructor in constructor chaining

C. Referring to the instance variable when local variable has the same name

D. Passing itself to method of the same class

Answer: Option D


This Question Belongs to Java Program >> Constructors And Methods

Join The Discussion

Related Questions on Constructors and Methods

What is a constructor in Java?

A. A special method to create instances of classes

B. A method used for mathematical calculations

C. A method to perform string manipulations

D. An exception handling mechanism