+ 2

Is that possible to run java program without main function

java

30th Nov 2017, 1:50 PM
Deepan
2 Answers
+ 8
No, you must have at least one main fuction
30th Nov 2017, 2:03 PM
Vukan
Vukan - avatar
0
its possible using static block in java but one condition the jdk version is must below jdk5 but not in after version jdk.
1st Dec 2017, 1:20 AM
Deepan