[关闭]
@iar 2015-10-28T02:10:32.000000Z 字数 1675 阅读 115

Java Tips学习

java


目录

本文记录搜到的Stack overflow上面的Java tips.

Java OOP

Why is java.util.Observable not an abstract class?

Java multi-inheritance

What is PECS

"PECS" is from the collection's point of view. If you are only pulling items from a generic collection, it is a producer and you should use extends; if you are only stuffing items in, it is a consumer and you should use super. If you do both with the same collection, you shouldn't use either extends or super

Java container

iterate while modify/remove map

ConcurrentModificationException

random iterate over whole list

Java 8 stream

Convert list to array

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注