Unnamed Classes and Instance Main Methods (JEP 445)

GPTKB entity

Statements (23)
Predicate Object
gptkbp:instanceOf Python Enhancement Proposal
gptkbp:allows Java programs without explicit class declaration
Instance main methods instead of static main
gptkbp:author gptkb:Jim_Laskey
gptkbp:example public void main() { System.out.println("Hello, World!"); }
gptkbp:feature Instance main methods
Unnamed classes
gptkbp:goal Reduce ceremony for simple programs
Simplify the teaching of Java
https://www.w3.org/2000/01/rdf-schema#label Unnamed Classes and Instance Main Methods (JEP 445)
gptkbp:motive Make Java more approachable for beginners
Reduce boilerplate code
gptkbp:partOf Java language evolution
gptkbp:proposedBy gptkb:Java_21
445
gptkbp:publishedIn 2023
gptkbp:relatedTo gptkb:JEP_330
gptkb:JEP_463
gptkbp:removes public static void main(String[] args)
gptkbp:status Delivered
gptkbp:title Unnamed Classes and Instance Main Methods
gptkbp:bfsParent gptkb:Java_SE_22_Edition
gptkbp:bfsLayer 7