hii Friends, Here I want to know that ; suppose i have .java file and after compilation class file is generated for .java file In this case suppose i want to check that whether java file is changed after compilation, I know that there is command for java Interpreter but i forget it if anyone is aware of that please reply
author and iconoclast
Check whether the Java file is changed? Check what?
Maybe you mean check whether the Java file is newer than the class file? You'd just use the operating system's last modified time for the two files. If you're doing this in Java, the java.io.File class has a method to check this; otherwise, "ls -l" or "dir" will do the trick.