+ 2
Can a java program can run without main() method?
2 ответов
+ 3
No, you can't run a java program without main()
In java 6 and earlier, you can use Static Blocks ( http://docs.oracle.com/javase/tutorial/java/javaOO/initial.html ), but there isn't a practical reason to do that.
0
No because the main method serves as the starting point of a program's execution.