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 the arguement of main method?
When does a class need a virtual destructor?
What is the synonym of procedure?
What is a constructor, constructor overloading in java?
What is meant by singleton class?
Can we call a non-static method from inside a static method?
Can we define package statement after import statement in java?
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?
If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?
What is the difference between overriding & overloading?
What is a void method?
What is final method in java?