Multiple choice

Which keyword do you use to create a new instance of an object?

  1. this

  2. object

  3. new

  4. class

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Java, the 'new' keyword is used to allocate memory for a new object instance and invoke its constructor.