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 8648849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:24:39+00:00 2026-06-12T13:24:39+00:00

I was just wondering why the Handler has to take an instance of a

  • 0

I was just wondering why the Handler has to take an instance of a Runnable ? After all a Handler purpose is place work from one thread into another Thread. What is the purpose of using a Third thread, a Runnable to accomplish this ?

Kind Regards,

  • 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-12T13:24:40+00:00Added an answer on June 12, 2026 at 1:24 pm

    I think I understand your confusion: You’re thinking that a Runnable object is in itself an instance of a separate Thread. It is not. In simple terms it is just an object that, by implementing the Runnable interface, a Thread you pass it to knows it can execute the code inside it by calling .run() on it.

    When you send a Runnable object to the Handler, that Runnable is executed in the Handler‘s Thread.

    In simple terms it’s probably sufficient to explain it this way: If you want to supply a Handler with some work to do on its own Thread, then you have to supply that piece of code inside an object. Now, the object you supply to the Handler has to implement some kind of interface so that the Handler knows what methods to call in that object to make it do the stuff it needs to do. In basic terms that’s what the Runnable interface does: it is mandatory for an object that implements Runnable to implement the run() method.

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

Sidebar

Related Questions

I'm just wondering if anyone else has had problems moving the Zend Framework from
Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which
Just wondering the best way to replace in place matches on a string. value.replace(bob,
Just wondering is it possible to build CLI app that can be run from
I'm just wondering if anyone who has experience on Azure Table Storage could comment
Just wondering if anyone has encountered this and has a good fix. Here is
Just wondering is there a way to handle that in Sencha Touch. One store
Android has it's NDK to handle native code. I was just wondering how deep
just wondering if there is a way to reduce the amount of code needed
Just wondering, having the following simple code: var object1 = { name: function (){

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.