no synchronized block.all are synchronized methods.
synchronized method A()
synchronized method b()
method c()
two threads t1 and t2
t1 accesses method A()
whether t2 can access the method B or NOT? while T1 in A().
Thanks
smita_smita wrote:
no synchronized block.all are synchronized methods.
Doesn't matter. My explanation covers both.
synchronized method A()
synchronized method b()
method c()
two threads t1 and t2
t1 accesses method A()
whether t2 can access the method B or NOT? while T1 in A().
I answered your question.
And this is a multithreading question that's actually very easy to test with code.