Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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