Back to NetConnectGlobal.com
What happens in Java if the static modifier isn’t included in the main method signature?
There’d be no compilation errors. When the programme is run, however, because the JVM cannot map the main method signature, the code throws a “NoSuchMethodError” error.
Prajval Changed status to publish November 1, 2022