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 the purpose of declaring a variable as final?
Explain runtime exceptions?
Explain how to force the garbage collection in java.
What are white spaces in java?
What classes of exceptions may be thrown by a throw statement?
Why are parameters used in functions?
What are heap memory and stack memory and what are memory tables.
Difference between final and effectively final ?
What is mean by encoding?
Is arraylist an object in java?
What is a vararg?
Explain restrictions for using anonymous inner classes?
Can a source file contain more than one class declaration?
What is file in java?
Discuss 2D arrays.