• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Method Invocation Without Exception Declaration or Handling

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I imagine that the code segment/snippet presented, starting from the bottom of page 855 through the top of page 856 of the study guide, is part of some larger code that either declares or handles the InterruptedException thrown by the awaitTremination() method. However, wouldn't it be better if the code snippet explicitly shows that it itself, at least, handles this exception in a catch block, even if some larger encompassing code isn't provided to show that the exception is declared?
 
reply
    Bookmark Topic Watch Topic
  • New Topic