'this' prefix in Java?
<p>Does the <code>this</code> prefix for accessing member variables exist in Java? </p>

<p>Here is my HelloWorld code:</p>

<pre><code>public class HelloWorld {

    public static int x = 0;

    public static void main(String[] args) {

        HelloWorld.x = 45;

        System.out.println(HelloWorld.x);
    }
}
</code></pre>

<p>The above code works with/without the class name prefixing the variable <code>x</code>. However, if i try: <code>this.x = 45;</code> or <code>this-&gt;x = 45;</code> I receive an error:</p>

<blockquote>
  <p>non-static variable this cannot be referenced from a static context</p>
</blockquote>

<p>I understand member variables can be accessed without the <code>HelloWorld</code> (class name) prefix, like I have done. But, I want to know <strong>if the <em>this</em> prefix exists in Java, how do I use it?</strong></p>

<p><strong>EDIT:</strong></p>

<p>Also, could you provide an example where <code>this</code> is appropriate? </p>

<p><strong>duffymo &amp; byte</strong> - I greatly appreciate your help. Thanks.</p>
