Tuesday, May 22, 2007

What is the difference between executeQuery () and execute() ?

The return type of execute() method is boolean , if true that means a ResultSet object is returned, if false no result is returned.The ResultSet is obtained on Statement object in such case through getResultSet method.In case of executeQuery() method once executed returns ResultSet object.



Interview Questions On Java,Java EE Copyright © 2017. Reads: best tracker