Whats new with the stop(), suspend() and resume() methods in jdk 1.2?



Whats new with the stop(), suspend() and resume() methods in jdk 1.2?..

Answer / Sandeep Verma

The stop(), suspend(), and resume() methods were deprecated in JDK 1.2, as they can cause serious problems such as deadlocks, livelocks, or thread starvation. Instead, use more modern techniques like wait(), notify(), and notifyAll() for inter-thread communication.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

What are different types of layout managers in java.awt package?

3 Answers   Android, CA,


Explain about local interfaces.

1 Answers  


If I define a method in JSP scriplet <%..%>, where will it go after translation into a servlet?

8 Answers   HeadStrong,


What are the steps involved in developing an RMI object?

1 Answers  


what is the proxy pattern?

1 Answers  


What is threadfactory?

1 Answers  


whats is stored procedure,joins

1 Answers   Photon,


What is meant by method chaining?

1 Answers  


difference between apllet and interface class

1 Answers   Infotech,


Difference Between getRequest and PostRequest?

8 Answers   HCL, TCS,


What is abstract schema?

1 Answers  


Define the remote object implementation?

1 Answers  


Categories