Answer Posted / lipu
a,b
a=a+b;
b=a-b,
a=a-b;
write them in scriplet and declaration.
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
How common are security breaches? : java security
Differences between intermediate operations and terminal operations of java 8’s stream api?
What are the advantages of java 8’s date and time api over old date api and joda time api?
What is meant by rest api in java?
What is stateless and stateful in java?
What is class path in java?
ioc vs dependency injection?
How do I enable java in google chrome?
What is cmp in java?
What is flatmap in rxjs?
Do I need to install jre if I have jdk?
What is the difference between a while statement and a do statement?
What are tlds in java?
Who is at risk in java? : java security
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.