When was this Java class compiled?
Credits to Dmitry Beransky on the advanced-java@discuss.develop.com list.
import java.util.Date;
import java.io.IOException;
public class When {
public static void main(String args[]) throws IOException {
Date d =
new Date(
When.class.getResource("When.class")
.openConnection()
.getLastModified()
);
System.out.println("This class was compiled on " + d);
}
}
« First
‹ Previous
321 - 335 of 335
Showing 20▼ items per page