C Sharp (C#) - Exception Handling
Consider this code:
What will be printed?
try {
throw new NullReferenceException();
} catch (Exception ex) when (ex is SystemException) {
Console.WriteLine("System exception caught");
} catch (Exception) {
Console.WriteLine("General exception caught");
}What will be printed?
