+ 2
Is that possible to run java program without main function
java
2 Answers
+ 8
No, you must have at least one main fuction
0
its possible using static block in java but one condition the jdk version is must below jdk5 but not in after version jdk.