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?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Java Related AllOther Interview Questions

What is java persistence api used for?

0 Answers  


Which version of my browser should I use? : java security

0 Answers  


Does ms edge support java?

0 Answers  


Is jdk an ide?

0 Answers  


How can I check single byte, double byte of character in JTextField?(eg. japan unicode and English unicode)

0 Answers  


What is meant by annotation in java?

0 Answers  


What about 'hostile applets'? : java security

0 Answers  


what are the steps in JDBC connectivity..???

1 Answers   IBM, SoftCom, TCS,


When a thread is created and started, what is its initial state?

0 Answers  


In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.

0 Answers   NCR,


What is lambda expressions action func and predicate?

0 Answers  


What is microservices java?

0 Answers  


Categories