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
Which graphs are functions?
What is java thread dump, how can we get java thread dump of a program?
Can we override a variable in java?
What are the 8 primitive data types in java?
Which class is the superclass for every class in java programming?
What is java full form?
What is the main purpose of serialization in java?
What is the difference between serial and throughput garbage collector?
What is the difference between static and non-static variables in java programming?
What are benefits of java?
Which is better list or arraylist in java?
Does substring create a new object?
What are different types of constants?
can java object be locked down for exclusive use by a given thread? : Java thread
How do you override a private method in java?