Vidyalelo
Java Programming · Q27

Java Beans and JDBC

Programming · Java Programming · question 27

Q27

Which of the following is a valid way to handle exceptions in JDBC?

A.
Using JavaBeans to handle exceptions
B.
Using `throws` statements in SQL queries
C.
Using try-catch blocks to catch `SQLException`
Answer
D.
Using `break` statements in SQL queries

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board