PrepAway - Latest Free Exam Questions & Answers

Which code block will run successfully in an execute anonymous window?

A developer has the controller class below.

Which code block will run successfully in an execute anonymous window?

A. myFooController m = new myFooController();
System.assert(m.prop !=null);
B. myFooController m = new myFooController();
System.assert(m.prop ==0);

C. myFooController m = new myFooController();
System.assert(m.prop ==null);

D. myFooController m = new myFooController();
System.assert(m.prop ==1);


Leave a Reply