Login
Remember
Register
Ask a Question
What if the static modifier is removed from the signature of the main method?
0
votes
asked
Dec 7, 2020
in
JAVA
by
SakshiSharma
What if the static modifier is removed from the signature of the main method?
#static-modifier
#signature
#main-method
Java-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 7, 2020
by
SakshiSharma
Program compiles. However, at runtime, It throws an error "NoSuchMethodError."
...