Question: What would happen when the following piece of code is compiled and run?
var p : * = new ArrayCollection() //Line1
p.addItem("vishal"); //Line2
p.addItem(24); //Line3
p= new Date(); //Line4
var mydate : Date = p; //Line5
A
Compilation error at line1
B
Compilation error at line4
C
Compilation error at line5
D
No error. The code will compile and run without errors.