0

if a method is synchronized then how it is different from other method?

20th Jun 2017, 3:14 PM
Somnath Ghosh
Somnath Ghosh - avatar
1 Resposta
0
synchronized methods are used with multithreading. They prevent the method from being ran when other synchronized methods of the same object block are being ran. https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html
20th Jun 2017, 5:23 PM
ChaoticDawg
ChaoticDawg - avatar