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 extension method in java?

563


What do you mean by stack?

645


Is age discrete or continuous?

689


What is the collections api in java programming?

557


Does java list allow null?

548






What is javac in java?

564


Is finalize() similar to a destructor?

554


What is a parameter example?

531


Which category the java thread do fall in?

575


What is class variable java?

584


Why are arrays useful in java?

544


Where is the singleton class used?

587


How do you create a null object?

512


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

507


What is an object class?

561