QUESTION of the DAY - Good luck!
GIVEN THE FOLLOWING CODE, WHAT HAPPENS IF YOU TRY TO COMPILE AND RUN? (Ignore line numbers.)
----------------------------------
1. using myAlias = System.Console.WriteLine;
2.
3. class Example
4. {
5. public static void Main( )
6. {
7. int i = 32;
8. System.Console.Write( i );
9. // myAlias(" is my favorite number!");
10. }
11. }
----------------------------------
A. This code compiles and runs normally.
B. This code does not compile because of line 1.
C. This code does not compile because of line 8.
D. This code compiles, but a runtime error occurs.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

jamesRank #1,153 · 1.6K reputationPosted Oct 31, 2003, 5:30 AM EST
marvin7184 reputationPosted Oct 31, 2003, 6:51 AM EST
jamesRank #1,153 · 1.6K reputationPosted Oct 31, 2003, 7:02 AM EST
marvin7184 reputationPosted Oct 31, 2003, 7:46 AM EST