JAVA面试题

【1】接口和抽象类的区别:
(1) 接口可以多继承,抽象类只能单继承
(2) 抽象类的子类,可以不全部实现
【2】HTTP和HTTPS的主要区别
【3】 Cookie和Session的区别
【4】二叉树的分层遍历
前序中序和后序遍历
https://blog.csdn.net/apandi_/article/details/52916523
分层遍历
https://blog.csdn.net/snow_7/article/details/51815787

publiClass Solution{    

    public static void levelIterator(Node node){
        if(node==null){
        return ;
        }
        Queue<Node> queue = new LinkedList<Node>();
        queue.offer(root);
        while(!queue.isEmpty()){
            Node temp  = queue.poll();
            System.out.print(temp.getValue()+"--->")
            if(temp.left!=null){
                queue.offer(temp.getLeft);
            }
            if(temp.rigth!=null){
                queue.offer(temp.getRight);//分层遍历
            }
        }
    }
}
@Data
class Node {
    private Node left;
    private Node rigth;
    pirvate int value;
}

【5】牛B的面经
https://www.nowcoder.com/discuss/5941

https://www.nowcoder.com/discuss/69626

https://www.toutiao.com/a1595353019723790/

【6】
try {}里有一个return语句,那么紧跟在这个try后的finally {}里的code会不会被执行,什么时候被执行,在return前还是后

【7】阿里面试经验
作者:SmallLime
链接:https://www.nowcoder.com/discuss/71383
来源:牛客网

自我介绍
项目介绍与遇到的难点
ArrayList vs LinkedList
HashMap原理
JDK 1.8对HashMap的改进
多线程见协作与通信方式
Synchronized vs Lock
ReentrantLock优点
CAS
自旋锁
类加载过程
内存泄漏与内存溢出,及其原因
GC原理及优化策略
Java的Exception类型
数据库四种隔离级别
Spring框架介绍
OOP设计原则

【8】
https://www.nowcoder.com/discuss/69644?type=2&order=0&pos=9&page=1

【9】
https://www.toutiao.com/a1595353019723790/
【10】
https://www.nowcoder.com/discuss/69626?type=2&order=0&pos=10&page=1
【11】
https://www.nowcoder.com/discuss/69429?type=2&order=0&pos=13&page=2
【12】
https://www.nowcoder.com/discuss/29890?type=2&order=0&pos=14&page=7
【13】
https://www.nowcoder.com/discuss/70995?type=2&order=0&pos=15&page=1
【14】
https://www.nowcoder.com/discuss/71012?type=2&order=0&pos=18&page=1
【15】
https://www.nowcoder.com/discuss/70963?type=2&order=0&pos=21&page=1
【16】
https://www.nowcoder.com/discuss/70903?type=2&order=0&pos=22&page=1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值