In Java, every application begins with a class name, and that class must match the filename.
Let's create our first Java file, called MyClass.java, which can be done in any text editor (like Notepad).
The file should contain a "Hello World" message, which is written with the following code:
MyClass.java
public class MyClass { public static void main(String[] args) { System.out.println("Hello World"); } }