Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (8 votes)
See more:
The runnable interface defines a method _________ to contain the code that will be executed by the thread object .

a.start()
b.run()
c.execute()
d.init()
Posted
Updated 24-May-11 6:36am
v2
Comments
Sandeep Mewara 24-May-11 12:23pm    
Homework!
Marc A. Brown 24-May-11 14:29pm    
Really? I'm sorry, but if you can't even do a simple search for a multiple choice question, you should look into a different field of study. Or perhaps consider whether you want to continue your education at all. I'm not trying to be rude, but if you aren't willing to do a minimal amount of work to find the answer to a straightforward question like this, what are you going to do when you're handed a *real* problem?
clientSurfer 24-May-11 15:31pm    
All of the above

One quick google would have given you the answer

http://download.oracle.com/javase/tutorial/essential/concurrency/runthread.html[^]

The answer is on that page and obvious, read the material and see if you can figure it out!
 
Share this answer
 
Comments
Albert Holguin 24-May-11 13:48pm    
"took me five hours but I think its oranges"
Oranges
 
Share this answer
 
Comments
Rick Shaub 24-May-11 13:48pm    
Also acceptable: rutabagas.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900