What is execute(String query)?

Submitted by: Muhammad
Statement execute(String query) is used to execute any SQL query and it returns TRUE if the result is an ResultSet such as running Select queries. The output is FALSE when there is no ResultSet object such as running Insert or Update queries. We can use getResultSet() to get the ResultSet and getUpdateCount() method to retrieve the update count.
Submitted by: Muhammad

Read Online Sr.Java Web Developer Job Interview Questions And Answers