Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyC#exceptions try catchSingle-choice MCQ

Given multiple catch blocks, which one handles a thrown ArgumentNullException?

try { throw new ArgumentNullException("name"); } catch (ArgumentException ex) { Console.WriteLine("A"); } catch (Exception ex) { Console.WriteLine("B"); }