Questions
Which of the following methods is present in the Result Set interface in java database programming?
- moveToCurrentRow()
- moveToNextRow()
- moveToPreviosRow()
- moveToFirstRow()
- moveToLastRow()
Which of the following methods is not present in the PreparedStatement interface in java database programming?
- addBatch()
- executeQuery()
- executeBatch()
- execute()
- getMetaData()
Which of the following methods is present in the Statement interface in java database programming?
- isCloseOnInsertion()
- isCloseOnCompletion()
- isCloseOnDeletion()
- isCloseAfterUpdate()
- isCloseAfterInsertion()
Which of the following methods in ResultSetMetaData interface retrieves the designated column's database-specific type name?
- getColumnName(int column)
- getColumnType(int column)
- getColumnTypeName(int column)
- getColumnNameType(int column)
- getColTypeName(int column)
How many methods are defined in the Time class in java?
- 10
- 9
- 8
- 7
- 6
Which of the following methods is/are present in the Connection interface in java database programming?
- setSavepoint()
- setSavepoint(String name)
- getConnection()
- Both (1) and (2)
- Both (2) and (3)
Which of the following methods is not defined in the DataTruncation class in java database programming?
- getTransferSize()
- getDataSize()
- getRead()
- getWrite()
- getIndex()
Which of the following methods is not present in Connection interface in java database programming?
- abort(Executor executor)
- createStatement()
- getMetaData()
- getNetworkTimeout()
- createXMLSQL()
Which of the following methods is not present in the Statement interface in java database programming?
- addBatch(String sql)
- closeOnCompletion()
- executeQuery(String sql)
- executeBatch()
- getResults()
Which of the following methods is not defined in the SQLException class in java?
- getErrorCode()
- getNextException()
- getPreviousException()
- getSQLState()
- setNextException(SQLException ex)
Which of the following methods in ResultSet interface returns true to indicate that whether a row has been deleted?
- isDeleted()
- Deleted()
- rowDeleted()
- hasDeleted()
- isRowDeleted()
Which of the following methods in ResultSet interface returns true to indicate that whether the current row has had an insertion or not?
- isRowInserted()
- hasInserted()
- isInserted()
- rowInserted()
- Inserted()
Which of the following methods is present in the Connection interface in java database programming?
- isValid(int timeout)
- isReadable()
- isWritable()
- isInvalid(int timeout)
- isPrepared()
How many constructors of class SQLTimeoutException are there in java database programming?
- 10
- 9
- 8
- 7
- 6
Which of the following methods in ResultSet interface returns true to check whether the current row has been updated in a table?
- rowUpdated()
- isUpdated()
- hasUpdated()
- Updated()
- isRowUpdated()