If we want synchronized something in some method can we always use word synchronized after access modifiers in method instead of synchronized block? I am not sure but i suppose it is much more convenient.
I have general question not about this task.
You must be signed in to leave a comment
20 March 2019, 22:11
"The synchronized keyword can be used on different levels: Instance methods Static methods Code blocks" from here if you want to read more.