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 createstatement method in java?

723


How to set the attribute concurrency in resultset?

719


What is jdbc odbc bridge?

714


What is jdbc and explain jdbc architecture?

731


What class.forname does, while loading the drivers?

723


Jdbc-odbc bridge is multi-threaded or not?

737


How do we load the drivers?

745


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

854


What are temp tables ?

731


Explain the necessary steps to connect to the database in java?

804


How can we store the file in the oracle database?

735


What is jdbc resultsetmetadata interface?

740


What is jdbc connection class?

678


How does jdbc connect to database?

659


Is odbc an api?

757