Skip to content

Instantly share code, notes, and snippets.

View HelloCachedTime.java
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);
View HelloStartupTime.java
package org.graalvm.example;
import java.util.Date;
class HelloStartupTime {
public static void main(String args[]) {
System.out.println("Startup: " + Startup.TIME);
System.out.println("Now: " + new Date());
}
}
View HelloReflection.java
public class HelloReflection {
public static void foo() {
System.out.println("Running foo");
}
public static void bar() {
System.out.println("Running bar");
}