+ 1
Synchronized methods can be only accessed by one thread at a time. So it is safe and yes you can synchronize the main thread. Not sure where exactly it is useful.
29th Sep 2020, 12:17 PM
Avinesh
Avinesh - avatar