priyanaka jaiswal wrote:What will happen if two thread try to access two synchronized method using same object?
What will happen two thread t1 and t2 are trying to access one synchronized method and other unsynchronized method using same object?
Then those methods will get invoked
I didn't understand your
exact question. If two threads are trying to access two different methods, then synchronized or not, those methods will get invoked. What do you
exactly want to know? Can you give some code to illustrate your question?
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)