Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8208403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:19:52+00:00 2026-06-07T09:19:52+00:00

Please refer to the following code of from the Javadoc of Future class: FutureTask<String>

  • 0

Please refer to the following code of from the Javadoc of Future class:

FutureTask<String> future =
   new FutureTask<String>(new Callable<String>() {
     public String call() {
       return searcher.search(target);
   }});
 executor.execute(future);

P.S: I am not doing any exclusive executor.submit(future) call here .

So I am trying to execute the future task here by calling executor.execute() method. But how is the task getting submitted to the executor framework in the first place? Which line of code above is actually submitting the task to the executor ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:19:54+00:00Added an answer on June 7, 2026 at 9:19 am

    It’s the line

    executor.execute(future);
    

    The javadoc of this method says:

    Executes the given command at some time in the future. The command may
    execute in a new thread, in a pooled thread, or in the calling thread,
    at the discretion of the Executor implementation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer to the following code: // // CacheObjectManagerImpl.h #import <Foundation/Foundation.h> //#import CacheObject.h @class
Please refer to the following java source code : static class SynchronizedList<E> extends SynchronizedCollection<E>
Please refer to the following code: Filename: myclass.h @interface myclass:NSObject ... @end @interface NSObject(CategoryName)
Im new to C# programming. Can someone please explain the following code: Console.WriteLine( {0}{1,10},
By using the following code. BuyActivity.java public class BuyActivity extends ListActivity { public void
I have question please refer the following code to understand the question. (I removed
Hi please refer the following HTML code: <div id=content> <p> <font size='2'> <img src=something.jpg
I have the following code class sample { public void update(List l) { l
Please refer my previous question for code sample Sockets: sometimes (rarely) packets are lost
Please consider the following code: #include <iostream> #include <typeinfo> template< typename Type > void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.