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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:11:16+00:00 2026-06-14T12:11:16+00:00

Listener, Interface, Handler. They all sound similar but they must be different. Maybe ‘delegate’

  • 0

Listener,
Interface,
Handler.

They all sound similar but they must be different.

Maybe ‘delegate’ in objective-c as well.

  • 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-14T12:11:18+00:00Added an answer on June 14, 2026 at 12:11 pm

    Interface:

    interface are used to provide roles. According to Design Patterns when there are certain behaviors that keeps changing must be encapsulated in an interface or an abstract class.

    Eg:

    Suppose there is this paint class, which has a method paintIt().

    Now the method paintIt() can be free-hand, shading etc, so its kind of behavior which keeps changing. So we need to encapsulate it in an interface or an abstract class.

    Listener:

    Listeners are the interface that listens to certain action, and they contains the call back methods, which has the logic that is to be fired when that particular action is done.

    Handler:

    Handlers in android are used to post the data from the Non-UI thread to the UI thread.

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

Sidebar

Related Questions

I have a listener interface: public interface AnimationListener { public void onAnimationStarted(Animation animation); public
Scenario 1 The skip listener interface is as below: public interface SkipListener<T,S> extends StepListener
Consider the following example: public class Sandbox { public interface Listener<T extends JComponent> {
This question has come up several times and I've read all the answers, but
Can someone please tell me how the listener interface works, when you set a
Lets say I have a listener interface defined as: class Listener { public: virtual
onItemClick listener in ListView is not working in TabHost I visited this URL.I don't
The listener is: public void renderer(ActionEvent event) { System.out.println(here=========================); System.out.println(); System.out.println(); System.out.println(); System.out.println(); System.out.println();
I set up event listener, for example: setOnClickListener like this Button stopBtn = (Button)findViewById(R.id.stop);
I have a message listener (using ActiveMQ) that implements SessionAwareMessageListener. When the onMessage(Message,Session) method

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.