What are the benefits of PreparedStatement over Statement?
No Answer is Posted For this Question
Be the First to Post Answer
What are the differences between resultset and rowset?
Where is jdbc used?
What is new in JDBC 2.0?
How to connect multiple database in jdbc?
How can we store and retrieve images from the database?
Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.
4 Answers Cybermate, Hexaware,
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
What is layer in communication?
How to get the Database server details in java program?
How warnings are retrieved in JDBC?
What is jdbc type?
What is the function of setautocommit?