In Synchronization, is it possible to access multiple threads at a time in java..

In my class i have 2 methods.first method is Synchronized method,and Second method i declared Some Statements are Synchronized Block.My Doubt is...Is it Possible to Access two different threads in Synchronized Method and block At a time.

Your Answer

No its not possible, as it violets the synchronization rule which allows only one thread to run if all of them fall under synchronization method. if the thread was not under synchronized method it would have been continued to call.

Core Java

Didn't get the answer.
Contact people of Talent-Core Java directly by clicking here