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 are the steps to connect to a database in java?

478


What do you mean by database connection pooling?

516


What is sqlwarning and discuss the procedure of retrieving warnings?

548


What is new in JDBC 2.0?

572


Does sql allow null values ? Can we use it within where clause ?

509






What are different types of JDBC Drivers?

530


How to check jdbc connection in linux?

513


What does the jdbc connection interface?

538


What is the difference between jdbc and odbc?

525


What is JDBC Savepoint? How to use it?

688


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

535


How do I find jdbc version?

529


Is odbc an api?

514


How to update a resultset programmatically?

591


What is jdbc and its advantages?

498