Skip to content
Sharp

Object-oriented programming · interview question

What does using the 'new' keyword in Java evaluate to?

Multiple choiceEasychapter-2-curatedpremiumoopobject-references
Choose one answer
Answer and explanation

Correct answer

A. It creates a new instance of an object.

Why

The 'new' keyword is used to create a new object instance. It allocates memory for the object and calls its constructor.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →