What is static Synchronized method in JDBC API? Give an
example?

Answers were Sorted based on User's Feedback



What is static Synchronized method in JDBC API? Give an example?..

Answer / indrani

getConnection is the synchronised and static method

Is This Answer Correct ?    36 Yes 3 No

What is static Synchronized method in JDBC API? Give an example?..

Answer / anilbabu

yes this is correct and good answer

Is This Answer Correct ?    3 Yes 0 No

What is static Synchronized method in JDBC API? Give an example?..

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

Post New Answer

More JDBC Interview Questions

how you will execute the many tables data

1 Answers   Wipro,


How can I get information about foreign keys used in a table?

0 Answers  


preparedstatement p= new preparedstatement is it possible ?

10 Answers   Fidelity, IBM, Infrasys,


Is not bound in this context unable to find jdbc spring boot?

0 Answers  


List the advantages of using datasource?

0 Answers  






Diff. types of triggers..

4 Answers   Logica CMG,


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?

3 Answers  


How many ways can you update a result set?

0 Answers  


Is JDBC a language or Application?

3 Answers  


How can you retrieve data from the resultset using jdbc?

0 Answers  


What is the difference between jdbc and jndi?

0 Answers  


Categories