What happens when we invoke a thread?s interrupt method
while it is in sleeping or waiting condition?
Answer / meeti
void interrupt()
This method interrupts the thread on which it is invoked. In
the Waiting-for-notification, Sleeping, or
Blocked-for-join-completion states, the thread will receive
an InterruptedException.
| Is This Answer Correct ? | 1 Yes | 0 No |
For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??
Why are some of the class and element names counter-intuitive?
what is the Remote Stub?
What is the purpose of the wait() method?
difference between applicationserver and webserver
Difference between JRE and JVM?
3 Answers HeadStrong, Infotech,
What is the priority of Garbage collector thread?
What is the applet sandbox?
Which textcomponent method is used to set a textcomponent to the read-only state?
Explain Object Serialization and it can be used?
What are the different types of exception?
Can you give me a simple example of using the requiredif validator rule?