|
|
|
|
|
by int_19h
828 days ago
|
|
They almost caught up with C#, which ditched requisite class declarations years ago. Although C# went one step further and allowed top-level code outside of methods, so that hello world is now: Console.WriteLine("Hello, world!")
|
|
(It's also pretty poor style, but occasionally useful in a pinch, like when instantiating an anonymous inner class, which has no constructors that take arguments)