随笔分类 -  面试题

每天 积累面试题
摘要:<!-- https://mvnrepository.com/artifact/commons-configuration/commons-configuration --><dependency> <groupId>commons-configuration</groupId> <artifact 阅读全文
posted @ 2018-06-06 15:49 anxbb 阅读(529) 评论(0) 推荐(0)
摘要:比如 final Map map =new HashMap(); 可以往map里put数据final List list =new ArrayList(); 可以往list里add数据但是 final String s =“123”; 然后s就不可修改数据了同样是final 为啥map和list可以 阅读全文
posted @ 2018-04-24 10:22 anxbb 阅读(662) 评论(0) 推荐(0)
摘要:很多常见的面试题都会出诸如抽象类和接口有什么区别,什么情况下会使用抽象类和什么情况你会使用接口这样的问题。本文我们将仔细讨论这些话题。 在讨论它们之间的不同点之前,我们先看看抽象类、接口各自的特性。 抽象类 抽象类是用来捕捉子类的通用特性的 。它不能被实例化,只能被用作子类的超类。抽象类是被用来创建 阅读全文
posted @ 2018-03-21 17:48 anxbb 阅读(4468) 评论(0) 推荐(0)