I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?


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

Post New Answer

More Core Java Interview Questions

What are the advantages of exception handling?

0 Answers  


what is meta-Inf?

2 Answers   Polaris,


Why we cannot override static method?

0 Answers  


What are batch updates. in jdbc

2 Answers   Corent Technology,


What is tostring () method?

0 Answers  






What is the exact difference in between Unicast and Multicast object ?

4 Answers   Accenture,


How is abstraction implemented in java ?

0 Answers  


What is the difference between a factory and abstract factory pattern?

0 Answers  


What are the types of java?

0 Answers  


What is backdrop?

0 Answers   Atos Origin,


Can I import same package/class twice?

0 Answers  


Is there memory leaks in java?

3 Answers  


Categories