Hi All,
I have a class as shown below:
this class has two methods they are synchronized. Now let us say
thread 1 is executing firstMethod while its executing that thread 2 tries to execute the second method on same object. Will it be able to execute it or not? If yes then how come this is lock on a object? I hopw this is not a silly question. Please help.