Blueprints of the Invisible Craftsmen

Report a typo

Match each Java constructor element with its correct description.

Match the items from left and right columns
this
new
Constructor
Instance Variable
Default Constructor
A variable declared inside a class but outside any method, which holds data associated with each instance of the class.
A constructor provided by Java if no other constructors are explicitly declared in a class; initializes object's fields with default values.
A keyword used to create an instance of a class, allocating memory for a new object.
A reference to the current object whose method or constructor is being invoked.
A special method in a class that is called when a new object is instantiated, used to set initial values.

Create a free account to access the full topic