aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

Which of the following methods will be used to execute the above SQL query in Java database programming?

String s = Select firstname, lastname from Employee;

  1. executeQuery(s);

  2. executeUpdate(s);

  3. executeStatement(s);

  4. executeString(s);

  5. execute(s)

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

This is the correct answer.

Keep practicing — related questions

  • Which of the following methods is used in Java to execute a SQL statement that may return multiple results?
  • Which method executes an SQL INSERT, UPDATE or DELETE Statement?
  • Which of the following methods is not present in the Statement interface in java database programming?
  • Which of the following methods is not present in the Statement interface in java database programming?
  • Which of the following methods executes an SQL statement that may return multiple results?
  • Which of the following methods is not present in the PreparedStatement interface in java database programming?
  • Which of the following methods is not present in the PreparedStatement interface in java database programming?
  • The _________ method executes a simple query and returns a single ResultSet object.

Practice this topic

  • Database and SQL (3929 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy