It should not even compile.
You probably had it pas static, and you changed it. The way it is written now does not compile.
$ javac A.java
A.java:7: non-static variable p cannot be referenced from a static context
p = Integer.parseInt(args[0]);
^
1 error
Strike>
change
Now that you have adjusted your code, the answer is:
This program does not print 0 , because what you see is the value assigned on line 7. In this case, it pis a class variable.
p = Integer.parseInt(args[0]);
, :
System.out.println(new A().p);
0, , " A" p, .