Answer Posted / 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 |
Post New Answer View All Answers
Can we make the abstract methods static in java?
Is hashset sorted in java?
What is annotation in java?
What is the difference between hashmap and hashtable? What is an interface?
Is linked list a linear or non-linear data structure?
What is use of arraylist in java?
What is mean by collections in java?
What is square root in java?
What are java annotations?
Is arraylist ordered?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is an exception in java?
What is the difference between stringbuffer and stringbuilder class?
Explain about arraylist?
What are the restrictions that are applied to the java static methods?