So I just tried excluding String[]
args from the main
method
It compiled alright !
But JVM is showing an exception
Why did it compile when String[]
args HAS to be included every time ?
What is going on here ? Why won't it show a compilation error ?
typing this made me think that may be compiler did not see it as THE main
method ..is that so ?
If that is the case..why not ? I mean isn't there supposed to be just one main method that MUST have String[]
args as the argument ?