What are the two ways you can synchronize a block of code?
Answer Posted / popol83
I think using mutex is the second way.
Because synchronizing an object is useless
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you mean by constant time complexity?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is token in java?
How do you bind variables?
Can we write method inside a method in java?
What is the difference between instanceof and isinstance?
What is locale in java?
Why Java is not pure Object Oriented language?
What is the difference between keyword and identifier?
What is hash in java?
What is lambda in java?
Explain method local inner classes ?
Is set thread safe java?
What is the use of pattern in java?
Explain differences between collection api and stream api?