This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Threads and Synchronization
setDaemon not present in Runnable Interface
Santosh Kumar Nayak
Joined: Aug 02, 2011
Sep 14, 2013 22:31:18
Why the setDaemon() is not present when we implement the Runnable Interface.
The method is only present when we extend the Thread class.
Joined: Sep 14, 2013
Sep 14, 2013 23:16:24
Because Runnable has nothing to do with threads, it's just an interface with run() method, which is assumed to be executed by thread.
Have you checked out
subject: setDaemon not present in Runnable Interface
Calling methods before start()
is the "implement" included in the "is a" relationship?
What exactly is a Marker Interface?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015