Multiple choice

Which of the following methods is present in the Connection interface in java database programming?

  1. isValid(int timeout)

  2. isReadable()

  3. isWritable()

  4. isInvalid(int timeout)

  5. isPrepared()

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

isValid(int timeout) method is present in the Connection interface and it returns true if the connection has not been closed and is still valid. So, this answer is correct.