Lopez Mirinda wrote:I am looking for a good tutorial on the internal implementation of a string, its memory management and much more about it which I am not aware of.
Then you're looking for the wrong thing.
Firstly: Java is an
Object-Oriented language, which means that
designers don't want you to know about the internals of their classes; and that applies to
any class, not just String.
Secondly: Java is a
memory-managed language, which means that
it deals with memory.
It may be worth your while to read the
CachedObjects page, which explains a bit about the String pool; but the fact of the matter is:
it's not that important, and you shouldn't obsess about it. Unless you plan on creating gazillions of Strings with the
new keyword when you don't need to, it's not likely to make much difference to your program.
What you need is a good tutorial on how to USE Strings; and for that,
the Oracle one is probably as good a place as any to start.
Another place to look is the API documentation itself (java.lang.String ←click). They may seem a bit dry at the moment, but getting familiar with them is part and parcel of becoming a good Java programmer.
Winston