Thanks Bear Bibeault & Rob Spoor,
As Rob Spoor writes:-
The thing is, String's behaviour regarding memory changed quite a bit in Java 7.
I try to find about
substring. & memory leak also.
But my point of view is different.
I found difference in String.java.
But before that i found difference in Integer.java
In JDK 6
in JDK 7
When i debug my example which i posted in first message of this topic, i got knowledge about difference in String.java.
So as in Integer.Java has just change return statement, will it make impact on Memory leak problem?
In String.java, particular constructor related to speed! What speed?
How toString(i) concept co-relate with substring() concept?
Though
In other words, it's an internal implementation detail with which you should not be concerned.
Sorry sir may be my thinking is rude/wrong way but as follows i think:-
As by reading
FAQ, i can not find restriction on studying of source of java, so no specific limitation on 'concern'.
If every open source project's knowledgeable people say...'its an internal implementation detail with which you should not be concerned.', then how will people become Kernel Developer, Device Driver developer, u-Boot Developer, Ethical Hacker etc in these topics which i know(just names) needs internal things only. If i try to go 'internal things' in my known area like java, then did i make mistake?