There are 2 threads, one of them started executing a synchronized method, inside which Thread.sleep (5000) is applied. Can another thread use other NONSYNCHRONIZED methods of this "blocked" object? As I understand it, not the object itself “blocks”, but only synchronized code fate (or methods).

    1 answer 1

    Yes, you can perform this action. Why not just try? You understand correctly.

    • Yes, it is, thanks - prista