Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1132 Page Views: 

What method must be implemented by all threads?



Posted By: Avi Date: 7 November 2010 12:46:50 PM
 Answer:

All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.


Posted By: avibtech


Date: 7 November 2010 12:46:50 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image 2ENx1R
Related Questions
Core Java : What is the result of this code: if("String".trim() == “String")  System.out.println("Equal"); else System.out.println("Not Equal");
Core Java : What is static initializer block?

What is static initializer block?

A static initializer block is a block of code that declares with the static keyword and execute at t....
Category: Core Java Date: 11/2/2010 8:38:51 PM
Core Java : What is the difference between Iterator and Enumeration?

What is the difference between Iterator and Enumeration?

Iterator allows the caller to remove elements from the underlying collection during the iteration wi....
Category: Core Java Date: 11/2/2010 8:05:51 PM
Core Java : What method is invoked to cause an object to begin executing as a separate thread?

What method is invoked to cause an object to begin executing as a separate thread?

The start() method of the Thread class
Category: Core Java Date: 11/2/2010 7:33:49 PM
Core Java : What is the purpose of the finally clause of a try-catch-finally statement?

What is the purpose of the finally clause of a try-catch-finally statement?

It is used to provide the capability to execute code no matter if an exception is thrown or not.
Category: Core Java Date: 11/2/2010 7:01:48 PM