Which method is used to execute SQL queries in jdbc?
a) executeQuery()b) executeUpdate()
c) execute()
d) executeBatch()
Answer:
a) executeQuery()
Explanation:
The executeQuery() method in JDBC is used to execute an SQL query and retrieve the result as a ResultSet object.
Comments
Post a Comment