To make Java more memory efficient (because no new objects are created if it exists already in string constant pool).