Core Java Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 995 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 rDi75l
Related Questions
Core Java : How are this() and super() used with constructors?

How are this() and super() used with constructors?

this() is used to invoke a constructor of the same class. super() is used to invoke a superclass con....
Category: Core Java Date: 11/4/2010 11:43:46 AM
Core Java : What is the difference between the String and StringBuffer classes?

What is the difference between the String and StringBuffer classes?

String objects are constants. StringBuffer objects are not.
Category: Core Java Date: 11/4/2010 9:21:48 AM
Core Java : What is the Locale class?

What is the Locale class?

The Locale class is used to tailor program output to the conventions of a particular geographic, pol....
Category: Core Java Date: 11/4/2010 9:10:53 AM
Core Java : What is the difference between the >> and >>> operators?

What is the difference between the >> and >>> operators?

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits tha....
Category: Core Java Date: 11/4/2010 8:37:52 AM
Core Java : What is object pooling?

What is object pooling?

Creating a large number of identical short lived objects is called object pooling. This takes some t....
Category: Core Java Date: 11/4/2010 8:05:51 AM