0
Can we execute a program without main() in JAVA ?
4 ответов
+ 7
Yes You can compile and execute without main method By using static block. But after static block executed (printed) you will get an error saying no main method found. ... But this will not execute with JAVA 7 version.
+ 3
welcome bro..
and good luck <3
+ 1
thanks.💙