Home Answers Viewqa Java-Beginners Is catch(){} block synchronized?

 
 


Yuman
Is catch(){} block synchronized?
0 Answer(s)      2 years and 2 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?

View Answers









Related Pages:

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.