CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,5 @@
|
|||
final String immutableString = "test";
|
||||
immutableString = new String("anotherTest"); //this is an error
|
||||
final StringBuffer immutableBuffer = new StringBuffer();
|
||||
immutableBuffer.append("a"); //this is fine and it changes the state of the object
|
||||
immutableBuffer = new StringBuffer("a"); //this is an error
|
||||
Loading…
Add table
Add a link
Reference in a new issue