What will be the output of the executeQuery() method in JDBC?

  • A boolean indicating success or failure.
  • Nothing; it doesn't return any value.
  • The number of rows affected.
  • The result of the SQL query execution.
The executeQuery() method in JDBC returns a ResultSet object, which contains the result of the SQL query execution. This ResultSet can be used to retrieve and manipulate the query results. The other options are incorrect as they do not accurately describe the output of this method.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *