Can we call the Thread.sleep in Synchyronozed block?
Answer Posted / muthusenthil
yes, you can call wait method inside synchronized block but
synchronized block usually allows one by one to penetrate
in.if you call wait method inside it will create a stagnant
circumstance. synchronized block wont allow other threads
inside till this thread in waiting state get notified
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What restrictions are placed on method overriding?
Is singleton class thread safe?
Is java a super set of javascript?
How do you trim a space in java?
what is the difference between thread and runnable types? : Java thread
What is difference between call by value and call by reference?
please send me hr interview questions in it industry
Explain access specifiers?
Explain hashset and its features?
What is the ==?
What is the difference between serializable and externalizable interface?
What is the purpose of static methods and static variables?
Can java hashmap have duplicate keys?
Can we use return in constructor?
Is java hard to learn?