is there a list of de-facto immutable classes in the jdk?
technically Immutable classes include the obvious Integer, Double etc..
de-facto immutable will include for example java.lang.String - it might technically be mutable but de-facto it is not.
Also, are there Interfaces/Abstract classes which are required (as stated in the javadoc) to be immutable?
if you cannot provide a complete List, i would already be happy if you know a bunch of classes which state immutability in its javadoc..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…