package cn.itcast_01;
/*
* 递归:在方法定义中调用方法本身的现象
*
* 方法的嵌套调用,这不是递归
* Math.max(Math.max(a,b),c);
*
*
*自己调用自己是递归
*
* public void show(int n){
*
* if(n<=0){
* System.out.println(0);
* }
* System.out.println(n)
*
* show(n--);
* }
*
* 注意事项;
* A:递归一定要有出口,否则就是死递归
* B:递归的次数不能太多,否则就内存溢出(内存不够)
* C:构造方法不能递归使用
*
*/