Java
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}Output
Hello, World!
This is the first program most Java developers write. It shows:
- How to declare a public class
- How to define the main entry method
- How to print text to the console using System.out.println