Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Java Kernel Notebook Test • 1 min read

Description

just read the title, it aint that hard tbh

// Define Static Method within a Class
public class HelloStatic {
    // Java standard runtime entry point
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
// A method call allows us to execute code that is wrapped in Class
HelloStatic.main(null);   // Class prefix allows reference of Static Meth
Hello World!