what is the use of public static void main()?can't we achieve the same thing through static block or through other static methods?
we can use static block instead of main method because static block executes before the main method this is used when a program needs two main methods we have to write second main method inside the static block