why do we really need to "throw " exceptions in java programing??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • umangbansal
    New Member
    • Jul 2010
    • 8

    why do we really need to "throw " exceptions in java programing??

    what is the need of throwing exceptions in java??
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    If you don't want to handle the error conditions you can simply throw the exception.

    Regards
    Dheeraj Joshi

    Comment

    • ahmee
      New Member
      • Mar 2010
      • 39

      #3
      anz...

      throw exception is used to specfic and catch errors in program and throw (to show it) it to programer.try and catch statement is used for throwing exceptions.

      Comment

      Working...