]
Sunny Jain wrote:How are you planning to have a static lock, I mean lock over a class?
I believe you can always have a lock over class instance or Do you mean to say - lock over static properties of a class?
Beside you code doesn't have run method, so Its difficult to know what are you trying to do ?
See the results and then remove the
static from the method signature of
display and then compare with last output.