Report Bug

QusWhat kind of expression is “new Point(2,3)”? Qus "न्यू पॉइन्ट(2,3)" किस प्रकार का एक्सप्रेशन है?


A. Primary Expression
B. Object Creation Expression
C. Invocation Expression
D. Constructor Calling Expression


Solution
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.
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad