can overloaded methods be synchronized?
Yes, overloaded methods can be synchronized in java. Note: But you will get mutual exclusive problem if all methods are synchronized and you are using same object to invoke them. So, instead of using synchronized keyword at method level, try to follow below approach. class LoggerTest { private final Object LOCK = new Object(); … Read more