New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Can we compile a program without main method?
will it give error or not?
2 Answers
+ 5
Yes but can't run with out main.
+ 4
As of Java 7, no you cannot.
will it give error or not?