0
Can we execute a Java Program without having main() method in our program???
5 ответов
+ 4
No you cannot.
Static blocks are no longer supported without a main method.
+ 2
Most probably not, Java VM needs to know where it should start for execution point.
(Edit)
Apparently I was wrong, look at @Ace's answer.
Thanks @Ace, I didn't know that.
+ 2
😜