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 does the jdbc databasemetadata interface?

526


How do I stop nullpointerexception?

516


What is meant by connection string?

560


What is jdbc odbc driver?

580


How can you retrieve data from the resultset using jdbc?

555






What are JDBC Best Practices?

555


Name the new features added in jdbc 4.0.

552


What are the differences between stored procedure and functions?

478


What is savepoint in jdbc?

516


How do I check in my code whether a maximum limit of database connections have been reached?

583


Is jdbc secure?

514


What is database connection pooling? Advantages of using a connection pool?

543


How can we store the file in the oracle database?

524


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

506


How java can be connected to a database?

572