Is catch(){} block synchronized?

Ads

 
 

Share on Google+Share on Google+

Yuman
Is catch(){} block synchronized?
0 Answer(s)      6 years and 3 months ago
Posted in : Java Beginners

The code in catch(){} block behaves synchronized. In one block, if I do {write to file1; write to file2}, and in another {write to file2; write to file1}, they deadlock. Is this implicit sync defined in the language spec?

Ads
View Answers
Ads









Related Tutorials/Questions & Answers: