java args array in main() method confusion (null check)
<p>I am a little confused at something. I wrote a small code snippet.</p>

<pre><code>import java.util.*;
class AA
{
  public static void main(String args[])
  {
     if(args == null )
     {
          System.out.println("I am null");
     }
     else{
           System.out.println(args);
      }
 }
 }
</code></pre>

<p>It is a simple test. Though i am not passing anything from the command line
as argument but still args is not null which means that JVM initializes it to
something like String array. Why any specific reason behind this? I am curious
to know. Any pointers would be helpful.
Thanks,
Ben</p>
