Can we call the Thread.sleep in Synchyronozed block?
Answer Posted / ravikiran
Yes we can call,And should be enclosed between try catch
blocks beacause Interupted exception may be thrown.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is final keyword in java? Give an example.
What is static import?
How to compare strings in java?
What is a layout manager and what are different types of layout managers available in java awt?
What do you know about java?
What does t in java mean?
What do you understand by the term wrapper classes?
How do you override a method?
Is 0 an even number?
What is equals method in java?
What does yield method of the thread class do?
Explain some best practices you would apply while using collection in java?
What is array sorting in java?
What is string buffer?
What is the use of StringTokenizer class?