immutability in java
2016-03-24 23:02
453 查看
Immutable Objects in java
Not changeable. All Java variables are by default mutable. An Object is immutable if there is no way you can change its fields after it has been constructed.
String, Integer and other wrapper classes are final classes, immutable classes as well.
Immutable
Immutable objects
How to create Immutable Class and Object in Java
A Strategy for Defining Immutable Objects
Understanding the difference between mutable and immutable classes
What is meant by immutable?
Why is String immutable in java
The ins and outs of immutability
http://javarevisited.blogspot.com/2015/04/3-ways-to-prevent-method-overriding-in.html
http://www.programcreek.com/2009/02/overriding-and-overloading-in-java-with-examples/
http://growth.phodal.com/#growth-%E5%85%A8%E6%A0%88%E5%A2%9E%E9%95%BF%E5%B7%A5%E7%A8%8B%E5%B8%88%E6%8C%87%E5%8D%97
Not changeable. All Java variables are by default mutable. An Object is immutable if there is no way you can change its fields after it has been constructed.
String, Integer and other wrapper classes are final classes, immutable classes as well.
Immutable
Immutable objects
How to create Immutable Class and Object in Java
A Strategy for Defining Immutable Objects
Understanding the difference between mutable and immutable classes
What is meant by immutable?
Why is String immutable in java
The ins and outs of immutability
http://javarevisited.blogspot.com/2015/04/3-ways-to-prevent-method-overriding-in.html
http://www.programcreek.com/2009/02/overriding-and-overloading-in-java-with-examples/
http://growth.phodal.com/#growth-%E5%85%A8%E6%A0%88%E5%A2%9E%E9%95%BF%E5%B7%A5%E7%A8%8B%E5%B8%88%E6%8C%87%E5%8D%97
相关文章推荐
- java对世界各个时区(TimeZone)的通用转换处理方法(转载)
- java-注解annotation
- java-模拟tomcat服务器
- java-用HttpURLConnection发送Http请求.
- java-WEB中的监听器Lisener
- Android IPC进程间通讯机制
- Android Native 绘图方法
- Android java 与 javascript互访(相互调用)的方法例子
- 介绍一款信息管理系统的开源框架---jeecg
- 聚类算法之kmeans算法java版本
- java实现 PageRank算法
- PropertyChangeListener简单理解
- c++11 + SDL2 + ffmpeg +OpenAL + java = Android播放器
- 插入排序
- 冒泡排序
- 堆排序
- 快速排序
- 二叉查找树