class Sample{ static{ main(null); } public static void main(String [] args){ System.out.println("Main Executed."); } }
The call in static block is not same as main called by JVM.
Calling is different however the method is same.
Post a Comment
2 comments:
The call in static block is not same as main called by JVM.
Calling is different however the method is same.
Post a Comment