How to handle when the database crashes while reading the
data from the database?

Answer Posted / deepti agrawal

We write the JDBC code in the try & catch block. So if the
database crashes it will return some kind of exception
which can be handled through the code.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a connection string used for?

708


Why jdbc is used in java?

686


Which type of driver provides jdbc access via one or more odbc drivers?

702


How to check jdbc connection in java?

689


How to know howmuch data is truncated?

2102


What are the jdbc drivers in java?

710


What is an odbc driver?

675


Is jdbctemplate thread safe?

675


What is difference between statement and preparedstatement in jdbc?

665


What is CLOB and BLOB datatypes in JDBC?

773


What does executequery return in java?

698


Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?

732


Explain the importance of drivermanager.

913


What is the benefit of having jdbcrowset implementation?

728


What are dml and ddl?

718