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
Why chararray() is preferred over string to store the password?
What will happen if a thrown exception is not handled?
When will you define a method as static in Java?
What is charat ()?
Difference between default and protected access specifiers?
What is scanner in java?
What are loops in java?
Where is singleton pattern used?
Explain naming conventions for packages?
Can a constructor call another constructor?
How do you declare a destructor in java?
What is string intern in java?
Is zero a positive integer?
What is variable in java?
What is the difference between a switch statement and an if statement?