When I use synchronized
on a method in an interface, the compiler emits an error. Can you tell me why this happens?
What is the reason (logically) that synchronized
cannot be applied to a method on an interface
?
I tried to make an Interface over Threadpool in this link. Help me to make Interface in my above code.