Computer Science, asked by aden4509, 10 months ago

Can we share object between two threads when both threads are created by runnable class. If yes show example

Answers

Answered by Anonymous
0

Multiple threads may exist on same object but only one thread of that object can enter synchronized method at a time, though threads on different object can enter same method at same time.

Similar questions