You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NamedClassWithSimpleMainMethodPreview1.java 386B

1234567891011
  1. /**
  2. * Example according to <a href="https://openjdk.org/jeps/445">JEP 445</a>
  3. * <p>
  4. * This actually does not require any compiler changes and should be compilable without {@code --enable-preview}.
  5. * It merely serves as a test case for the JVM launcher protocol.
  6. */
  7. public class NamedClassWithSimpleMainMethodPreview1 {
  8. void main() {
  9. System.out.println("Hello world!");
  10. }
  11. }