Main Thread & current Thread
<pre><code>class SimpleThreading
{
    public static void main(String... args)
    {
        Thread t=new Thread();
        System.out.println(t.getName());
        System.out.println(Thread.currentThread().getName());
        t.start();
        System.out.println(Thread.currentThread().getName());
    }
}
</code></pre>

<p>After writing the statement <strong>t.start()</strong>  it should print the current thread as "Thread-0" which is by-default name given by JVM.But it prints again the Main. Can anyone clear my doubt where I am going wrong?? the output of above code is:
<strong>Thread-0
Main
Main</strong></p>