Multiple choice

What Java keyword is used to create objects?

  1. new

  2. create

  3. construct

  4. abracadabra

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

In Java, the 'new' keyword is used to instantiate a class and allocate memory for a new object on the heap.