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 finally and finalize in java?
Can a class extend 2 classes in java?
Is a class an object?
Difference between character constant and string constant in java ?
How do you add an arraylist to an array in java?
Can vector have duplicates in java?
What are different data structures in java?
What is contract between hashcode and equal method?
What is exception in java?
What is t in generics in java?
What is constructor and its types?
What does I ++ mean?
What is the purpose of a volatile variable?
What are the types of literals?
What is the symbol for line break?