This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setDaemon not present in Runnable Interface

 
Santosh Kumar Nayak
Ranch Hand
Posts: 141
Eclipse IDE IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why the setDaemon() is not present when we implement the Runnable Interface.

The method is only present when we extend the Thread class.
 
Sergey Korytnikov
Greenhorn
Posts: 11
Eclipse IDE Java Slackware
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because Runnable has nothing to do with threads, it's just an interface with run() method, which is assumed to be executed by thread.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic