Callback with reference to itself vs. standalone subclass
<p>Maybe stupid question, but I can't understand...<br/>
Is there a difference between the following ways?
I mean waste memory or something?</p>

<pre><code>class A implements Handler.Callback {
    // is it OK to pass the loopback reference into the Handler in this case?
    Handler mHandler = new Handler(this); 
    public boolean handleMessage(Message msg) {
         ...
    }
}

class B {
    Handler mHandler = new Handler() {
         @Override
         public void handleMessage(Message msg) {
             ...
         }
    };
}
</code></pre>

<p>Thank you!</p>
