-
What kind of an expression is “new Point(2,3)”?
-
- Invocation Expression
- Constructor Calling Expression
- Primary Expression
- Object Creation Expression
- None of these
Correct Option: D
An object creation expression creates a new object and invokes a function (called a constructor) to initialize the properties of that object. Object creation expressions are like invocation expressions except that they are prefixed with the keyword new.