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. Define how can I implement this logic?
999Post New Java Related AllOther Questions
What is explicit casting?
What is jep in java?
What is http session in java?
Why struts framework is used in java?
What is meant by annotations in java?
What's a code group? : java security
Why doesn't lsdou work under windows nt? : java security
How do I enable jvm?
When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?
What is java persistence api used for?
What is the use of rs next () in java?
What is meant by pass by reference and pass by value in java?
What is mdb in java?
What is transient in java?
What are anonymous methods and lambda expression?