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

Can a abstract class be declared final?

0 Answers  


How does sublist works in java?

0 Answers  


what is object-oriented programming in java?

0 Answers   Reliance,


what is actual real time using of oops concepts in projects(Interface,polymorphism.abstraction.........)

2 Answers  


Does java arraylist maintain insertion order?

0 Answers  






What is a stack class in java ?

0 Answers   Akamai Technologies,


Can static method access instance variables ?

0 Answers  


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

0 Answers  


Is integer passed by reference in java?

0 Answers  


What are the 2 types of java programs?

0 Answers  


what are the rules to use try catch finally?

1 Answers   Satyam, UJ,


What technique can be employed to compare two strings?

0 Answers  


Categories