Discussion Forum : Lexical Structures
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 Your Solution hear:

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