Sail E0 Webinar
Question
For the below mentioned code snippet:var o = new Object();The equivalent statement is:
Options:
A .  var o = Object();
B .  var o;
C .  var o= new Object;
D .  Object o=new Object();
Answer: Option C


You can always omit a pair of empty parentheses in a constructor invocation.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers