is origination an lifeless twine consistent value it?


i have co-worker swears by



//in essay "constants" class
public stationary final twine empty_string = "";


in constants category accessible via project. way, something like



if (constants.empty_string.equals(otherstring)) {
...
}


instead



if ("".equals(otherstring)) {
...
}


i contend it's




  1. not value it--it doesn't save any space heap/stack/string pool,

  2. ugly

  3. abuse constants class.



who crazy here?



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members