Link Details

Link 81519 thumbnail
User 227636 avatar

By sharad1974
via techgrasp.com
Published: May 20 2008 / 03:17

This article shows us, with examples, how to use the Callable and Future interfaces in java concurrent utils package. These new interfaces allow us to return any object or throw any Exception from a method run in a separate thread. So we are no longer constrained by the public void run() method signature of the Runnable class.
  • 17
  • 1
  • 2031
  • 886

Comments

Add your comment
User 272422 avatar

htowninsomniac replied ago:

0 votes Vote down Vote up Reply

A very useful and well-written article, thanks. I believe using the generic types instead of raw types would have made the article even better, though.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.