how can i kill thread without stop() and destroy()
Answer / ganesh slv
Hey..
{
Thread t = new Thread (this); // or may be in some other ways
t.start (); // starting the thread.
// some codes here
// Now you can stop you thread by assigning null to the
thread
t = null;
}
| Is This Answer Correct ? | 6 Yes | 7 No |
How are commas used in the initialization and iteration parts of a for statement?
Why is multithreading important?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Why java is considered dynamic?
What do you know about the garbate collector?
what is connection pooling with example?
Distinguish between a predicate and a function?
What is foreach loop in java?
what is private constructor?what are the uses of writing private constructor in our program?
explain multi-threading in java?
Explain try and catch keywords in java?
Is void a keyword in java?