throw and throws

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nandhiniprabhu
    New Member
    • May 2010
    • 1

    throw and throws

    What is the difference between throw and throws.
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    throw is an action. It is a command to throw an exception.
    throws is a declaration. It tells you that a function may throw an exception while running.

    Comment

    Working...