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 we extend private class in java?

0 Answers  


What is boolean used for?

0 Answers  


What is the difference between JDK and JVM?

0 Answers  


What is the basic of java?

0 Answers  


what is the difference b/w static and final methods?

1 Answers  


Explain naming conventions for packages?

0 Answers  


Which is bigger double or float?

0 Answers  


What method is used to specify a container's layout in java programming?

0 Answers  


When the constructor of a class is invoked?

0 Answers  


What is java used for on a computer?

0 Answers  


explain System.out.println()

12 Answers   CTS,


What are the fileinputstream and fileoutputstream?

0 Answers  


Categories