java中fail-fast 和 fail-safe的区别
2个回答
2016-07-16
展开全部
Iterator的安全失败是基于对底层集合做拷贝,因此,它不受源集合上修改的影响。java.util包下面的所有的集合类都是快速失败的,而java.util.concurrent包下面的所有的类都是安全失败的。快速失败的迭代器会抛出ConcurrentModificationException异常,而安全失败的迭代器永远不会抛出这样的异常。
fail (动词) 失败
disappoint (动词) 失望
失败导致失望,一个是因,一个是果
其区别可以从下面例句看到:
I failed. Of course I am disappointed.
My failure disappoints me.
I am disappointed that I have failed.
My failure is a big disappointment to me.
fail (动词) 失败
disappoint (动词) 失望
失败导致失望,一个是因,一个是果
其区别可以从下面例句看到:
I failed. Of course I am disappointed.
My failure disappoints me.
I am disappointed that I have failed.
My failure is a big disappointment to me.
2018-07-05 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
Iterator的安全失败是基于对底层集合做拷贝,因此,它不受源集合上修改的影响。java.util包下面的所有的集合类都是快速失败的,而java.util.concurrent包下面的所有的类都是安全失败的。快速失败的迭代器会抛出ConcurrentModificationException异常,而安全失败的迭代器永远不会抛出这样的异常。
fail (动词) 失败
disappoint (动词) 失望
失败导致失望,一个是因,一个是果
其区别可以从下面例句看到:
I failed. Of course I am disappointed.
My failure disappoints me.
I am disappointed that I have failed.
My failure is a big disappointment to me.
fail (动词) 失败
disappoint (动词) 失望
失败导致失望,一个是因,一个是果
其区别可以从下面例句看到:
I failed. Of course I am disappointed.
My failure disappoints me.
I am disappointed that I have failed.
My failure is a big disappointment to me.
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询