What is waiting state? In what ways a thread can enter into
waiting state?
Answers were Sorted based on User's Feedback
Answer / sandya
In 3 ways:
1.A Thread can enter the waiting state by invoking it's
sleep() method
2.By blocking on i/o by unsuccessfully attempting to
acquire an object's lock or by invoking an object's wait()
method.
3.It can also enter the waiting state by invoking it's
suspend() method.
| Is This Answer Correct ? | 27 Yes | 2 No |
What are externizable interface?
Why are some of the class and element names counter-intuitive?
What method MUST be implemented by all threads?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
How can a dead thread be restarted?
what is a non-repeatable read?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
what is difference between checked exception & unchecked exception in java?
What is serialization and de-serialization ?
which deployment descriptor element is used to configure the authentication method? a. auth-config b. login-config c. sec-config
Difference Between java & javax
5 Answers Sun Microsystems, Wipro,