常见英语面试题

first.The difference etween Vector and ArrayList

1.ArrayList is not synchronized while Vector is.
2.ArrayList has no defaule size while vector has a default size of 10.
3.ArrayList don't define any increment size while Vector has.
4.ArrayList can be seenn directly without any iterator while vector rrequices an iterator to display all it's content.

second.The difference between Hashtable and HashMap
The hashMap class is roughly equivalent to hashTable.
except that it is unsynchronized and permits nulls.
HashMap can not guarantee that the order of the Map will remain constant over time.

third:Diference betweent inerface and abstract class
1.interface no implementation.abstract class can have partial implementation
2. a class can implement several interfaces but one class can only extend one abstract class.
3.interfaces are slow as it required extra indirection to find corresponding method in the actual class.

similarities:
neither abstract classes or interface can be instantiated.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值