Tagged articles

main method

8 articles · Page 1 of 1
macrozheng
macrozheng
Apr 21, 2023 · Fundamentals

How JEP 445 Simplifies Java Hello World for Beginners

JEP 445 introduces flexible main methods and anonymous main classes to streamline Java's entry point, removing unnecessary class, public, static, and argument requirements, thereby making the classic Hello, World! program far simpler for students and new developers.

Beginner FriendlyJEP 445Java
0 likes · 6 min read
How JEP 445 Simplifies Java Hello World for Beginners
Java Backend Technology
Java Backend Technology
Sep 22, 2020 · Fundamentals

Why Is Java’s main Method Public, Static, and Void? Explained

This article explores why Java’s entry‑point main method must be declared public, static, and void, covering JVM requirements, the role of static loading, accessibility, and the rationale for its void return type, while also noting related modifiers and common misconceptions.

JVMJavaProgramming Fundamentals
0 likes · 6 min read
Why Is Java’s main Method Public, Static, and Void? Explained
Programmer DD
Programmer DD
Feb 28, 2020 · Fundamentals

Why Is Java’s main Method Public, Static, and Void? Explained

This article explains why the Java main method must be declared public, static, and void, covering its role as the program entry point, the JVM's requirements, and additional modifiers and variations such as varargs and strictfp.

JVMJavaProgramming Fundamentals
0 likes · 6 min read
Why Is Java’s main Method Public, Static, and Void? Explained