tag:blogger.com,1999:blog-8712770457197348465.post5269232921831457492..comments2024-03-29T00:43:22.798-07:00Comments on Javarevisited: How to use Callable and Future in Java? Example Tutorialjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8712770457197348465.post-21815600242752151542018-01-11T22:07:17.035-08:002018-01-11T22:07:17.035-08:00Thanks!!
Very helpful for me :)Thanks!!<br />Very helpful for me :)Shivahttps://www.blogger.com/profile/02595635084820392585noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-27820265856841196162015-06-19T02:07:06.736-07:002015-06-19T02:07:06.736-07:00In above example,
Future should be declared with...In above example, <br /><br />Future should be declared with type parameter<br />Future result10 = es.submit..... and so on. <br /><br />Otherwise get() would return an Object type and so the compilation errors will be shown at<br />long factorialof10 = result10.get();<br /><br />-ArunArunhttps://www.blogger.com/profile/01586415342522475020noreply@blogger.com