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
What is oop in java?
what is the difference between future and callable interface in java?
Explain the importance of finally block in java?
What is the memory leak in java?
What are the different types of inheritance in java?
What is an iterator java?
How is Object Oriented Programming different from Procedure Oriented Programming?
What is type inference in java8?
What is the difference between checked exception and unchecked exception?
What is the argument in java?
What is unmodifiable list in java?
What is return null in java?
How can a gui component handle its own events?
Can we overload the methods by making them static?
How do you calculate roots in java?