Q. What kind of an expression is “new Point(2,3)”?

  • (A) Primary Expression
  • (B) Object Creation Expression
  • (C) Invocation Expression
  • (D) Constructor Calling Expression
πŸ’¬ Discuss
βœ… Correct Answer: (B) Object Creation Expression
Explanation: 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.
Explanation by: Tanmay
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
94%
Success Rate