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
Can we create constructor in abstract class ?
Can we change the value of static variable?
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
Can interface be private in java?
How can we make a class singleton?
What are three types of loops in java?
Can we override constructors?
What’s the difference between constructors and other methods?
What is difference between final and finally in java?
What is 16 bits called?
What is nan in java?
What are default methods ?
What are the advantages of packages in java?
What is array list in java?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.