Skip to main content

Diigo Home

Bertrand's weblog: When was this Java class compiled? - The Diigo Meta page

www.codeconsult.ch/...000767.html - Cached - Annotated View

Benx Shen's personal annotations on this page

benxshen
Benxshen bookmarked on 2007-06-20 code java sample
  • 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.

  • 20 Jun 07
    • 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);
      }
      }