Ruby - Error Handling
What will this Ruby code output?
begin raise SystemExit rescue Exception => e puts 'Rescued' end
begin raise SystemExit rescue Exception => e puts 'Rescued' end
SystemExit, which inherits from Exception.Exception, including SystemExit, so it prints 'Rescued'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions