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

Difference between Preemptive scheduling vs. Time slicing?

0 Answers  


What is Hierarchy of exception?

0 Answers   Amdocs,


which class to use when concatenating strings in a loop.

3 Answers   IBM,


what is collections in java?

4 Answers  


What is an example of a keyword?

0 Answers  


what are depricated methods in threads and explain the lifecycle methods

5 Answers   CTS,


Explain the difference between jvm and jre?

0 Answers  


Is java code slower than native code?

0 Answers  


what is the form of storage space in java?

5 Answers  


How big is a 32 bit integer?

0 Answers  


What is variable and constant explain with example?

0 Answers  


how to write a program for chat function using core java

1 Answers   Satyam,


Categories