This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HelloReflection { | |
public static void foo() { | |
System.out.println("Running foo"); | |
} | |
public static void bar() { | |
System.out.println("Running bar"); | |
} | |