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 |
What is the purpose of a volatile variable?
What is character in data type?
How many types of JVM's (OR) Name of the JVM's which are used in Tomcat & Weblogic servers ?
What are the legal operands of the instanceof operator?
What is JFC?
Explain thread life cycle in java?
Can we extend singleton class?
What is integers and example?
what is net based application and its types
What is sorting algorithm in java?
What are static blocks and static initalizers in java ?
What a static class can contains?