+ 2
What is recursion in Java ?
2 Respuestas
+ 16
//method is called again and again , from the itself u can get the meaning
example ::: recursion for calculating factorial
fact (n){return n==1?1:n*fact(--n);}
//it will call fact () again & again , until n becomes 1