Timeline for Java: difference between String a = null and String a = new String()
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 15, 2016 at 18:51 | history | edited | Tulains Córdova | CC BY-SA 3.0 |
added 2 characters in body
|
Aug 6, 2015 at 2:51 | comment | added | Andres F. |
Agreed. But also, if the OP doesn't need to change s , they should initialize it once and make it final. No need to mess with null or empty Strings :)
|
|
Jul 28, 2015 at 17:13 | vote | accept | Rajat Saxena | ||
Jul 27, 2015 at 16:28 | history | edited | Tulains Córdova | CC BY-SA 3.0 |
deleted 2 characters in body
|
Jul 27, 2015 at 16:27 | history | edited | user40980 | CC BY-SA 3.0 |
edited body
|
Jul 27, 2015 at 16:26 | history | answered | Tulains Córdova | CC BY-SA 3.0 |