What is persistence xml in java?
What is the use of lambda functions?
What is optional in java 8? What is the use of optional?advantages of java 8 optional?
What are the benefits of a jar file?
Why there are no global variables in java?
Where is java installed?
What is type_scroll_insensitive in java?
What are the authentication modes in asp.net? : java security
Is jdk an ide?
what is major difference between component and object?
How do I install eclipse?
How do I open my java console?
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.