On May 24, 12:27*am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Fri, 23 May 2008 21:21:37 -0700, jmDesktop <needin4mat...@gmail.com> *
> wrote:
>
> > I'm just trying to understand what a callback is. *I read it is a
> > listener, but not sure. *I have searched. *Thank you for any help.
>
> It depends on your definition of "callback". *In my experience, that's *
> reserved for describing a function point of sorts, which Java doesn't have..
>
> But Java does use interfaces to accomplish much the same functionality. *
> In that respect, actionListener (and the numerous other similar "listener" *
> interfaces) could be thought of as a "callback".
>
> What's the context? *Where are you seeing the term "callback", and is *
> there something about how it's used that you don't understand and you're *
> trying to figure out?
>
> Pete
Just in general. Nothing specific. I hate reading computer books
where they expect one to know exactly what their talking about, when
they should not suppose it. I was reading something on oop and the
author starting talking about callbacks. It was a beginner book and I
just have never really got the concept. Then I read something that
said a Java listener was a callback, which kind of cleared things up.
I can never get straight who the caller and the callee is. thanks.
|