在java中打印char数组时,它会给出空指针异常,但在整数数组的情况下,它会打印null
public class Test {
char c[];
int a[];
//while printing c it gives null pointer exception
public static void main(String[] args) {
System.out.println(new Test().c);
// in case of integer it prints null
System.out.println(new Test().a);
}
}