Skip to content
Sharp

SQL for Java Devs · interview question

Which method is used to execute a query that returns data in JDBC?

Multiple choiceEasychapter-8-curatedpremiumsql-for-java-devsjdbc
Choose one answer
Answer and explanation

Correct answer

A. ExecuteQuery()

Why

The executeQuery() method is used to execute SQL queries that return data, typically in the form of a ResultSet, such as SELECT statements.

Test yourself on SQL for Java Devs

A free test with instant, explained results. No account needed.

Start free test
All SQL for Java Devs questions →