Will the following code compile (as a part of a method):
 
ArrayList list = new ArrayList();
list.Add(new Object()); 
list.Add(new Exception()); 
list.Add(new Random().Next(10)); 
list.Add(new ArrayList());
 
Explanation
Get an explanation when it's available:
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback