In a JDBC Application,

(1) Loading the Driver,
(2) Statement Creation,
(3) ResultSet all thorw SQLException.

when we put this code in single try/catch block, how do we know which code of line thrown an Exception? I mean, it should be either of (1), (2) and (3).

How do we distinguish them? Any Advices Appreciated.