Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package org.graalvm.example;
import java.util.Date;
class HelloCachedTime {
static final Date CACHED_TIME = Startup.TIME;
public static void main(String args[]) {
System.out.println("Startup: " + CACHED_TIME);
System.out.println("Now: " + new Date());
}
}
class Startup {
static final Date TIME = new Date();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment