i agree with the following post.
I don't (if you mean following==preceding).
for those of us who frequent regularly, this topic or ones similar
are posted every other week, with effort on the part of the poster.
And what do you believe is the reason for that?
- If someone believes toString() could be something similar to a typecast, he
will have a hard time finding this misunderstanding resolved in a book.
Typecasts and the toString() method will be treated in separate chapters.
- It is not obvious what good keywords for a web search are.
- If the obj in the OP's code is actually a String he will be unable to see the
difference, simply because in that case there *is* no difference. Both pieces of
code will assign precisely the same reference to abc. To see the difference, it
would be necessary to replace obj by an instance of some other class which is
not an obvious idea for a beginner since it takes you farther away from what you
want to achieve.
it would be nice if folks made some effort to solve their problems
as well as ask. it would make it easier for us to assist also.
I don't see any evidence for the fact that the OP didn't make any effort (though
I don't see evidence for the converse either). Even if we agree that there are
unnecessary posts in these groups, moaning about this fact won't stop the next
from posting a similar question.
The only point I see is that this question belongs to cljh instead of cljp.
Cheers,
Simon