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


Please Help Members By Posting Answers For Below Questions

What is treeset in java collection?

530


Why do we need array in java?

537


What is the difference between variable declaration and variable initialization?

512


what do you understand by the term string with respect to java?

534


How does regex work?

528






What is scope & storage allocation of static, local and register variables? Explain with an example.

572


Is arraylist ordered in java?

580


What is difference between == equals () and compareto () method?

533


What is a hashmap used for?

652


What are the differences between getting and load method?

546


Can you instantiate the math class?

604


What is bufferedreader in java?

584


What does ide stand for?

525


Can we call the constructor of a class more than once for an object?

635


What is sizeof () operator?

573