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 is finalize method?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
How is hashcode calculated in java?
Can variables be used in java without initialization?
Which of the following is not an isolation level in the JDBC
Can abstract class have private constructor?
hr interview how many minutes asking question
Can a final variable be null?
How can you traverse a linked list in java?
What is the difference between throw and throws keywords?
What is super in java?
do I need to use synchronized on setvalue(int)? : Java thread
What are the default and parameterized constructors?
What is merge sort in java?
Tell me are there implementations for sorting and searching in the java libarary?