I have a synchronized method and a non-synchronized method in a class, and I have one thread that obtains a lock on the synchronized method.
My question is this: can other threads access the non-synchronized method of the class in this situation?
Yes. The method remains accessible to other threads if it is not declared synchronized
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With