Java thread question
<p>I'm taking Java lessons. We're now into threads. It is the first time I'm experiencing multithreading so please excuse me if the question is very dumb :)</p>

<p>I've the following program:</p>

<pre><code>public class Foo extends Thread {
    private int x = 2;

    public static void main(String[]args) {
        new Foo().fun();
    }

    Foo () {
        x = 5;
        start();
    }

    public void fun() {
        x = x - 1;
        System.out.println(x);
    }
    public void run() {
        x = x * 2;
    }
}
</code></pre>

<p>When I run the program I get 4 as output. Will the output of the above program always be 4?</p>
