Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 956 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 4G0fpt
Related Questions
Core Java : When does the compiler supply a default constructor for a class?

When does the compiler supply a default constructor for a class?

The compiler supplies a default constructor for a class if no other constructors are provided.
Category: Core Java Date: 11/2/2010 5:55:46 PM
Core Java : What is daemon thread?

What is daemon thread?

It is theard that is running on the background and doesn't give any chance to run other threads once....
Category: Core Java Date: 11/2/2010 5:11:50 PM
Core Java : What is a thread group?

What is a thread group?

A thread group is a data structure that controls the state of collection of thread as a whole manage....
Category: Core Java Date: 11/2/2010 4:38:50 PM
Core Java : What happens when you add a double value to a String?

What happens when you add a double value to a String?

The result is a String object.
Category: Core Java Date: 11/2/2010 4:27:54 PM
Core Java : What classes of exceptions may be thrown by a throw statement?

What classes of exceptions may be thrown by a throw statement?

A throw statement may throw any expression that may be assigned to the Throwable type.
Category: Core Java Date: 11/2/2010 3:54:54 PM