Tuesday, November 29, 2011

Explain about the Try Block?

Try and Catch blocks are primarily used for handling exception. Java wants a mechanism which can handle when an exception is thrown. Try block spots the exception and hands it over to catch block which process the exception and deals with it appropriately. Try block contains classes and logic inside it.
Category:JDBC Interview Questions

No comments:

Post a Comment