公告
财富商城
积分规则
提问
发文
2020-06-03 05:55发布
戒情不戒烟
Can we create an immutable object without having all fields final?
If possible a couple of examples would be helpful.
Yes, if you created an object that contained only private members and provided no setters it would be immutable.
最多设置5个标签!
Yes, if you created an object that contained only private members and provided no setters it would be immutable.