When I use the below mentioned code, the main is called recursively.
But it is called only 9112 times. Why not Infinite times.
Then the program terminates abnormally.
Even the exception is not caught.
Can any one explain me why this is happening.If so, why only 9112 times.
public class CallMain
{
static int count;
public static void main(
String args[])
{
try
{
System.out.println("Main Called"+ ++count);
String anotherArgs[] = {"K","P"};
main(anotherArgs);
}
catch(Exception e)
{
System.out.println("Exception is:"+e);
}
}
}