Answer :
main() in JAVA is public due to the following two reasons:
1. main() method can be accessed by any no. of classes.
2. main() method can be invoked by JVM from everywhere.
Note: The keyword public is a modifier.
main() in JAVA is public due to the following two reasons:
1. main() method can be accessed by any no. of classes.
2. main() method can be invoked by JVM from everywhere.
Note: The keyword public is a modifier.