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

Explain about the Try Block?

0 Answers  


Where can I find info, frameworks and example source for writing a JDBC driver?

0 Answers  


How a database driver can be loaded with jdbc 4.0 / java 6?

0 Answers  


What does executeupdate return in java?

0 Answers  


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

0 Answers  






What are statements in JAVA ?

1 Answers   CTS,


How many types of jdbc drivers are there?

0 Answers  


Explain jdbc savepoint?

0 Answers  


Give an example for execution of sql statement.

0 Answers  


What is execute(), executeUpdate() and executeQuery() methods?

10 Answers  


Explain the main method?

0 Answers  


can we define indexes on a foreign key? Explain pros and cons?

1 Answers  


Categories