hey all, I\'m new to Java and was wondering if I define a method to return a database object
like
import java.sql.*;
public class DbConn {
public
This is exactly the situation where you should let the exception propagate up the call stack (declaring the method as throws SQLException
or wrapping it in a application-specific exception) so that you can catch and handle it at a higher level.
That's the whole point of exceptions: you can choose where to catch them.