How many constructors of class SQLTimeoutException are there in java database programming?
-
10
-
9
-
8
-
7
-
6
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.