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 super constructor?
What are the advantages of exception handling?
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??
What is the difference between throw and throws?
What is the method in java?
Why are lists ordered in java?
Can we declare a class as abstract without having any abstract method?
Why do we need hashset in java?
Is null or empty java?
What is Transient and volatile
How do you create a bulleted list?
What is Overriding and how can it be used?