If I have a Java file test.java, and run it using Eclipse and it takes long time to process, how come I am able to modify the test.java and run another instance of it at the same time? There should be one test.class file, but Eclipse seems to cache the old one while it runs, right?
Share
while the program runs, the class file was already loaded by the class loader to the memory. Therefore the VM no longer needs the .class file. So no problem if the .class file changes on the filesystem.