Can we call the Thread.sleep in Synchyronozed block?
Answer Posted / pramod
ofcourse you can call thread.sleep in synchronized
block,when we call means when there is a possibility of
loop inside the synchronized block.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is a nested class?
What are different types of inner classes ?
Why can't you declare a class as protected?
Is string passed by reference in java?
What is hashing in java?
Can we use this () and super () in a method?
What is the disadvantage of synchronization?
Why map is used in java?
How do you compare two objects?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
How to reverse string in java?
What value is a variable of the string type automatically initialized?
What is the indent key?
What is the benefit of using enum to declare a constant?
What is the main purpose of java?