Executing a java program without main()
This question is asked by many interviewers during the technical interview. So, the question is self-explanatory. We have to execute a java program without using
|
1 |
public static void main(String args[]) |
We do this by using a static block or static initializer block. A static …