京东

一面
对HashMap的理解
jdk 1.8新特性
线程之间如何进行同步
写一个时间复杂度为O(n)的算法
二面
1.Test 的main线程的输出结果

public class Parent {
    public Parent() {
        System.out.println("parent A");
    }

    {
        System.out.println("parent B");
    }

    static{
        System.out.println("parent c");

    }
}
public class Son extends Parent{

    public Son() {
        System.out.println("SON A");
    }

    {
        System.out.println("SON B");
    }

    static{
        System.out.println("SON c");

    }

}
public class Test {
    public static void main(String[] args) {
        Son son = new Son();
    }
}

2.下面函数的输出结果

public class Test {
    public static void main(String[] args) {
        String[] arr = {"a", "b", "c"};
        List list = Arrays.asList(arr);

        for(int i = 0; i < list.size(); i++) {
            if("b".equals(list.get(i))) {
                list.remove(i);
            }
        }
    }
}

3.如何设计一个秒杀系统,比如100万用户,100库存
4.用3L和5L的罐子如何得到4L的水
5.线程池常见有哪些参数,核心线程数为16,工作队列大小为10,最大线程数为16会有什么问题
6.喜爱编程吗?职业规划?对新公司的期待
三面
主要聊项目
还问了一个技术点,BlockingQueue的实现原理

你可能感兴趣的:(京东)