+ 2
Is possible to run java program using static block but without using main function
java
3 Answers
+ 7
Code in the "static" block runs before main(). An empty/non-empty main() function must be defined though.
0
Yes its possible
0
In older version of jdk....