java面试题-惠芸

来源:互联网 发布:淘宝客服具体工作 编辑:程序博客网 时间:2024/06/08 10:16

1.接口和抽象类的区别


2.String类能不能被继承 。

不可以,因为String是final类型,不可以继承,不可以修改

3.runtime exception

http://blog.csdn.net/qq635785620/article/details/7781026

4.数组没有length(),String类有length();

5,List主要实现了哪些类

ListSet都继承Collection接口,而Map没有继承Collection接口。 

List的主要实现类有:ArrayList,LinkedList,Vector类。

Set的主要实现类有:HashSet类,TreeSet类,LinkedHashSet类。 

Map的主要实现类有:HashMap类,HashTable类,TreeMap类,WeekHashMap类和IdentityHahMap类等。

6.java一种编程模式.
7.排序
9.写一个获取execeptin的例子
10

0 0