Benx Shen's personal annotations on this page
Benxshen bookmarked
on 2007-06-20
-
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);
}
}
This link has been bookmarked by 1 people . It was first bookmarked on 20 Jun 2007, by Benx Shen.
-
-
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);
}
}
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.