Java & Android: Accessing a function using Classname vs this
<p>I'm not sure if this is a Java related question or an Android related question, please let me know which one it is. Obviously I am trying to develop for the Android, and I am using Eclipse.</p>

<p>Within a java class MainThread I have declared a constant. </p>

<p>This declaration works:
    private static final String TAG = MainThread.class.getSimpleName();</p>

<p>But this does not:
    private static final String TAG = this.class.getSimpleName();</p>

<p>Why is it that using the 2nd method returns the error:
<em>Syntax error on token "class", Identifier expected</em></p>
