I have written a simple code to learn synchronized methods.
Here two threads are accessing one synchronized method as below :
THREAD NAME : ONE
THREAD NAME : TWO
Now, my doubt here is how can the two threads(one & two) access the synchronized method at the same time.
Whereas a synchronized method can be accessed by a single thread at a time.