+ 1
Can we Execute Java program without main() Method?
5 odpowiedzi
+ 4
No,we require main() method for execution of program
+ 3
what about static block?
+ 1
no
0
You can compile your Java program without main() method and check whether systax is correct or not. But to check output of your program you have to create a main() method.