What is static Synchronized method in JDBC API? Give an
example?
Answers were Sorted based on User's Feedback
Answer / indrani
getConnection is the synchronised and static method
Is This Answer Correct ? | 36 Yes | 3 No |
Answer / venkat
getConnection is not synchronized method,but it is static
registerDriver(java.sql.driver);
deregisterDriver(java.sql.driver);
the above two methods are synchronized methods
if any one have doubet
go to command prompt type following command
javap java.sql.DriverManager
Is This Answer Correct ? | 1 Yes | 1 No |
how you will execute the many tables data
How can I get information about foreign keys used in a table?
preparedstatement p= new preparedstatement is it possible ?
10 Answers Fidelity, IBM, Infrasys,
Is not bound in this context unable to find jdbc spring boot?
List the advantages of using datasource?
Diff. types of triggers..
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,
Difference between servlet and applet method?
How many ways can you update a result set?
Is JDBC a language or Application?
How can you retrieve data from the resultset using jdbc?
What is the difference between jdbc and jndi?