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

How can I get or redirect the log used by DriverManager and JDBC drivers?

530


What causes the "No suitable driver" error?

548


What is JDBC Transaction Management and why do we need it?

558


Which Java and java.sql data types map to my specific database types?

550


What is jdbc in java?

501






How can I determine where a given table is referenced via foreign keys?

561


What is the purpose of the jdbc resultset interface?

524


What are the steps involved in establishing a connection using jdbc in java?

533


What happens if we don't close the connection in jdbc?

499


Explain in detail about JDBC and its general features?

537


What is jdbc and its advantages?

506


What is metadata in programming?

540


What are the standard isolation levels defined by JDBC?

583


What is two-phase commit in the database?

531


What are the differences between stored procedure and functions?

483