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


Please Help Members By Posting Answers For Below Questions

Explain the importance of thread scheduler in java?

600


What is casting in java programming?

585


What is one third plus one third as a fraction?

490


What is the difference between path and classpath variables?

532


5 Coding best practices you learned in java?

640






Explain the transient field modifier?

566


Explain the pointers in Java?

598


How to make object serializable in java?

553


Explain the selection sort algorithm and state its time complexity?

613


Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?

610


Tell me about your ability to work under pressure

1768


What is the meaning of find and replace?

527


When do we need to use internal iteration? When do we need to use external iteration?

610


Do I need java on my pc?

510


Can you override static methods?

503