i am not able to understand why the NullPointer exception is coming??import java.util.Date;
public class ex1{
private static String[] bildate;
int i;
Date date1;
public static void main(String args[])
{
String dat[] = null;
String date1[]=null;
for (int i = 0; i < dat.length; i++) {
if((i%2)==0){
date1[i]=dat[i];
}else{
bildate[i]=dat[i];
}
} String bildate[]=null;
}
}