Originally posted by Mohd Nayeemuddin:
My second query is that when we type a command to execute a java program I mean c:>java filename
... I want to also know that the program once executed with all the output required and then if we want to execute the same code will the interpreter again performs the job or it runs prevous code. And if we make some minor changes and compile and then after again execute the code will the whole code again interpreted by the Java Virtual Machine or only that part of code which is changed.
Well - first of all - you don't call
java filename but
java classname - do you?
After finishing the program, you start it again, and ask yourself, whether previously work of the runtime will have effect on a next run.
Well - assume the first run would have some influence, the work done by the JIT-Compiler must be stored somewhere - doesn't it?
So does your classfile change its timestamp? Its size?
Do you find some other file generated by the JVM when you ran your class?