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

Will the catch block here handle the DivideByZeroException?

try { int x = 0; int y = 10 / x; } catch (Exception ex) { Console.WriteLine("caught: " + ex.Message); }