+ 2
What is recursion in Java ?
2 Respostas
+ 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