1. Your first Java program
इस लेख का अनुवाद अपने आप होगा। अभी अंग्रेज़ी में दिखाया जा रहा है।
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.
उदाहरण देखें
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, Java");
}
}