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 null interfaces? Give some examples?

2 Answers  


What are static blocks in java ?

0 Answers  


I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.

3 Answers   Amtek, Huawei,


Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.

1 Answers  


what is use of session tracking ?with example?

1 Answers   Photon,






What is java argument list?

0 Answers  


What is the use of inner class?

0 Answers  


Do extraneous variables affect validity?

0 Answers  


What about features of local inner class?

0 Answers  


Is integer immutable in java?

0 Answers  


In which language JVM (Java Virtual Machine) is implemented

5 Answers  


What is the root class for all Java classes?

8 Answers   IBM, Infosys,


Categories