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
How can I get or redirect the log used by DriverManager and JDBC drivers?
What causes the "No suitable driver" error?
What is JDBC Transaction Management and why do we need it?
Which Java and java.sql data types map to my specific database types?
What is jdbc in java?
How can I determine where a given table is referenced via foreign keys?
What is the purpose of the jdbc resultset interface?
What are the steps involved in establishing a connection using jdbc in java?
What happens if we don't close the connection in jdbc?
Explain in detail about JDBC and its general features?
What is jdbc and its advantages?
What is metadata in programming?
What are the standard isolation levels defined by JDBC?
What is two-phase commit in the database?
What are the differences between stored procedure and functions?