class Pizza{
}
public class ArrayReferences
{
static int a[];
static Pizza[] smallPizzas;
public static void main(
String[] args)
{
System.out.print(a[0] + " "+ " " +smallPizzas[0]);
}
}
/*
Exception in
thread main
java.lang.NullPointerException
at ArrayReferences.main(ArrayReferences.java:11)
Press any key to continue...
*/
why am i getting this output:???
where have i erred???