I have given an answer to the question "String immutable", in the java tag, which is one of my most highly upvoted and accepted answers.
In that question OP asked only about string immutability, which I have explained.
Now what I want to do is to add more details in that answer, for example string comparison with equals and ==, which is different from what the user asked.
Why do I want to do that? I keep on forgetting about the concepts of String
. I tried making some notes, but they are lost somehow, so I want to keep all these related concepts in one place so that I can find them easily. It would also be helpful for others.
I will understand those concepts, and explain in the best possible way so that after some time, when I have some confusion I can come to that answer and refresh my memory.
I just want to know if it is a good practice to post unrelated details in a answer?
I am confused between if I post more details it would be helpful for me and I think to other also but on the other hand If this would be allowed(or good practice) by SO or not.