The keyword _______ is used to instantiate an object inside its own class definition.

  • constructor
  • instantiate
  • new
  • this
In Java, the keyword new is used to instantiate an object inside its own class definition. When you use new, you create a new instance of the class and allocate memory for it. The other options are not used for this purpose.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *