Multiple choice

How many constructors of class SQLTimeoutException are there in java database programming?

  1. 10

  2. 9

  3. 8

  4. 7

  5. 6

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

There are 8 constructors of SQLTimeoutException class in java. These are:- 1) SQLTimeoutException():- Constructs a SQLTimeoutException object 2) SQLTimeoutException(String reason):- Constructs a SQLTimeoutException object with a given reason 3) SQLTimeoutException(String reason, String SQLState):- Constructs a SQLTimeoutException object with a given reason and SQLState 4) SQLTimeoutException(String reason, String SQLState, int vendorCode):- Constructs a SQLTimeoutException object with a given reason, SQLState and vendorCode 5) SQLTimeoutException(String reason, String SQLState, int vendorCode, Throwable cause):- Constructs a SQLTimeoutException object with a given reason, SQLState, vendorCode and cause 6) SQLTimeoutException(String reason, String SQLState, Throwable cause):- Constructs a SQLTimeoutException object with a given reason, SQLState and cause 7) SQLTimeoutException(String reason, Throwable cause):- Constructs a SQLTimeoutException object with a given reason and cause 8) SQLTimeoutException(Throwable cause):- Constructs a SQLTimeoutException object with a given cause So, this is the correct answer.