aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "exception handling" Watch "exception handling" New topic
Author

exception handling

satya mahapatra
Ranch Hand

Joined: Jan 07, 2006
Posts: 134
when we deploy an application , do we remove the
exception handling code. like assertion exception
handling also used for testing and debugging only?


Regards,<br />Satya<br />SCJP,SCWCD
bhavesh bhanushali
Ranch Hand

Joined: Jun 13, 2005
Posts: 55
As such the use of assertations is to check wheter a certain condition exists during execution of the program . The main pupose as u would think would be in testing the application out. I think keeping assertations in the application after the testing is done would be a additional overhead on the system .
Michael Carlson
Ranch Hand

Joined: Sep 11, 2005
Posts: 78
Assertions are usually disabled upon deployment, but your exception handling code is needed always.
 
 
subject: exception handling