DEV Community

Sivakumar
Sivakumar

Posted on

Java catch calls function again and again

I used simple try catch block, while raising exception my catch block calls the function n number of time. Can anyone help on this?pls help on below code.

int var;
void myfunction(class object)
{
try
{
//Code
}
catch(Exception e)
{
myfunction(object);
}
}

Top comments (0)