robmiles.com
  • Journal
  • Projects
  • C# Yellow Book Begin to Code with C# Begin to Code with Python Begin to Code with JavaScript Exam Ref 70-483 Programming in C#
  • Hull Pixelbot Wrestling with Python Arduino Raspberry Pi Bluetooth Manager chords settings
  • The Little Brown Ikea Pencil of Doom Trip Hazard PI
  • RedNoseDay 2011 RedNoseDay 2015 Red Nose Day 2017 Red Nose Day 2019 Red Nose Day 2021 Three Thing Game Destruction Golf Rather Useful Seminars Crazy Archive Ye Olde Spoke Very Silly Games News Departmental Events Windows Phone App Studio LiveWriterFickrInkify
  • Tag Cloud

robmiles.com

  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/

robmiles.com

Rob Miles on the web. Also available in Real Life (tm)

Journal

robmiles.com

  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/
May 18, 2010

Final Exception Funny

May 18, 2010/ Rob Miles

Think you know about exceptions? What would this method return?

static int funAndGames()
{
    int result = 99;
    try
    {
        throw new Exception("Boom");
    }
    catch
    {
        return result;
    }
    finally
    {
        result = 100;
    }
}

May 18, 2010/ Rob Miles/ 4 Comments
Software

Rob Miles

  • Google Phone – Latest ...
  • Watch this, and then Watch it Again
  • Journal/
  • Projects/
  • Books/
    • C# Yellow Book
    • Begin to Code with C#
    • Begin to Code with Python
    • Begin to Code with JavaScript
    • Exam Ref 70-483 Programming in C#
  • Tech/
    • Hull Pixelbot
    • Wrestling with Python
    • Arduino
    • Raspberry Pi
    • Bluetooth Manager
    • chords
    • settings
  • Stories/
    • The Little Brown Ikea Pencil of Doom
    • Trip Hazard PI
  • Archive/
    • RedNoseDay 2011
    • RedNoseDay 2015
    • Red Nose Day 2017
    • Red Nose Day 2019
    • Red Nose Day 2021
    • Three Thing Game
    • Destruction Golf
    • Rather Useful Seminars
    • Crazy Archive
    • Ye Olde Spoke
    • Very Silly Games News
    • Departmental Events
    • Windows Phone App Studio
    • LiveWriterFickrInkify
  • Tag Cloud/

robmiles.com

Rob Miles is technology author and educator who spent many years as a lecturer in Computer Science at the University of Hull. He is also a Microsoft Developer Technologies MVP. He is into technology, teaching and photography. He is the author of the World Famous C# Yellow Book and almost as handsome as he thinks he is.

 
Books

Projects

Python Shorts

Bad Jokes
Journal RSS