What are jdbc and its components?
No Answer is Posted For this Question
Be the First to Post Answer
How to get a whole row of data at once?
When you will get error like ?No suitable driver??
What is createstatement method in java?
What class.forname does, while loading the drivers?
Define preparedstatement.
What are the packages are used in jdbc?
How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?
What does executeupdate return in jdbc?
What is SQL Warning? How to retrieve SQL warnings in the JDBC program?
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,
What is the difference between jdbc and jndi?
How can we set null value in jdbc preparedstatement?