Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //What will be in the output?
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- try
- {
- Console.WriteLine("Hello");
- return;
- }
- catch (ArgumentException)
- {
- Console.WriteLine("A");
- }
- catch (Exception)
- {
- Console.WriteLine("B");
- }
- finally
- {
- Console.WriteLine("C");
- }
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment