Viewing topic: Try/Catch Statements

See sub-topics for Try/Catch Statements ... >> Computer Science >> Programming >> Try/Catch Statements

Highest Rated Sign

Video id: #76 (enlarge)
Post date: 11/13/2008
Posted by: rajah
  • Currently 4.0/5 Stars.
  1 rating
See all signs (1)

Try/Catch Statements

  • Definition: The first block of the try/catch statement (“try”) contains the code you want to execute. The second block (“catch”) contains error-recovery code that should be executed if an exception is thrown. So, think of this as saying, “Try to execute these statements, but if something goes wrong, I’m going to give you some other code in the catch part that you should execute if an error occurs.”

    Source: Reges & Stepp

  • Example: Example sentence for context: "To actually handle the potential error, you’ll want to use something called a try/catch statement."

  • 10:02am 5/14/2015

    User: reinlessjacklin

    Post count: 368

    Hello, I read your blogs regularly. Your humoristic style is witty, keep it up! Best Swimming Goggles