Starlit Daily

📚 › Java

1. Your first Java program

Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.

Java programs run inside a class. The main method is where execution starts. System.out.println prints a line.

Java is compiled first, then the compiled file runs on the Java Virtual Machine, so one program works on many systems.

Ver ejemplo

public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello, Java");
  }
}

← Volver al curso