Or what is its value exactly?
This pertains to a question about this code:
private static int[] x;
   public static void main(String[] args)
   {
      System.out.print(x[0]);
   }
Which does not compile (obviously).
Or what is its value exactly?
This pertains to a question about this code:
private static int[] x;
   public static void main(String[] args)
   {
      System.out.print(x[0]);
   }
Which does not compile (obviously).
 
    
    The value of x is null.
It gives a NullPointerException when you do:
System.out.print(x[0]);
