Q25
For the below mentioned code snippet: var o = new Object(); The equivalent statement is:
A.
var o = Object();
B.
var o;
C.
var o= new Object;
AnswerD.
Object o=new Object();
Answer: Option C
Solution
Answer: Option C
Solution:
You can always omit a pair of empty parentheses in a constructor invocation.