Will the following code compile (as 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:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes