0
What is mean by base case
Recurrion
1 Answer
+ 7
If you use method recursion and you dont write base case than stackoverflow exception was happen.
Here is example
In that code stackoverflow exception was happen
void fun(){
fun();
}
And in this code stackoverflow exception will not happen
void fun(){
if ( any condition ) // base case
fun();
}