What is getconnection method in java?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JDBC Interview Questions

Which is faster jdbc or odbc?

0 Answers  


Give an example for getXXX method?

0 Answers  


How we say that PreparedStatment is Precompiled? where it will be compiled?

4 Answers   Logica CMG,


Why are we using blob datatypes in jdbc?

0 Answers  


code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)

0 Answers  






how do we get the connection from connection pool

1 Answers  


What are JDBC Best Practices?

0 Answers  


What is odbc. how is it related to sql cli?

0 Answers  


r u used any design patterns in your project?

3 Answers   Wipro,


Where is jdbc url mysql?

0 Answers  


What are common JDBC Exceptions?

0 Answers  


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,


Categories