Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help: About the Timer

 
Ying Ren
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to use the Timer in my booking method. I am still confused at the definition:
A facility for threads to schedule tasks for future execution in a background thread

Is it means that the Timer is a seperate thread which will not influenced by the Exception thrown by the readRecord or modify(),and will not terminated? If so, I think it is no need to use thread in this method. Am I right?
Ying Ren
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

A facility for threads to schedule tasks for future execution in a background thread

That line is not in my requirements, and I am sure it's not part of yours. Let me give you a piece of good advice: don't bother with the "scheduling tasks for future execution", -- you will make a perfect score without it.
Eugene.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic