I am told that javac is smart enough that it does not recompile the .java, in condition that this .java has a timestamp before that of .class. I just find it does not work like that in my machine, am I certainly wrong somewhere?
my P.java is located under .../eg/access, with P.java declared as a package of access
eg
|- access
|- P.class
|- P.java
Then when I run javac P.java, each time it is recompiled, is that normal or am I wrong?
It’s normal that it is recompiled each time. javac doesn’t do incremental compilation.