1.Java抽象类及子类实例化顺序和方法调用顺序测试
https://blog.csdn.net/wo541075754/article/details/51523639
2.java中子类继承父类程序执行顺序问题
https://www.cnblogs.com/coodream2009/p/5496474.html
3.java实现1+2+3+。。。n的各种解法(主要是非循环)
package test;
//面试:1+2+3+。。。n的各种解法
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(digui(100));
System.out.println(circle(100));
System.out.println(dengchaqiuhe(100));
}
public static int circle(int n)
{
/* int sum=0;
for(int i1=1;i1<=n;i1++)
{
sum=sum+i1;
}
return sum;*/
int sum=0;
int i=1;
while(i<=n) {
sum=sum+i;
i++;
}
return sum;
}
public static int digui(int n)
{
if( n==1)
return 1;
else
return digui(n-1)+n;
}
public static int dengchaqiuhe(int n)
{
int sum=0;
return sum=n+n*(n-1)/2;
}
}
4.JAVA 遍历文件夹下的所有文件(递归调用和非递归调用)
https://www.cnblogs.com/azhqiang/p/4596793.html
5.java实现二分查找-两种方式
https://blog.csdn.net/maoyuanming0806/article/details/78176957
6.快速排序Java实现--最简单的实现方法