This is a simple java class calls the main method recursively, but it throws a stack overflow exception. How does the stack overflow exception occur?
public class NewClass {
public static void main(String args[]) {
main(args);
}
}