3 ms·
Imagine `public class [randomName] {` at the top. If it has a void main() method the class loader (not the spec!) will do new [randomName].main() You won’t acq
by kaba0 3y ago
Imagine `public class [randomName] {` at the top. If it has a void main() method the class loader (not the spec!) will do new [randomName].main()
You won’t acquire this main via reflection because why would you do so? It is for teaching, and one-off scripts. Later on you can trivially add that single line and name your class.