What is cloning in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is a bean class?
Can an application have multiple classes having main method?
What is default constructor in java?
How common are security breaches? : java security
What are struts java?
Why doesn't lsdou work under windows nt? : java security
What is jdk for netbeans ide?
What is an interceptor in java?
What are orm tools in java?
what is transient variable?
Explain issues of old java date api?
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.