Yesterday in the group discussed with the small partners java string about = = and equals judgment
650) this.width=650; "Src=" http://img.blog.csdn.net/20150808222403186?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/southeast "style= "Border:none;"/>
650) this.width=650; "Src=" http://img.blog.csdn.net/20150808222420654?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/southeast "style= "Border:none;"/>
so When creating a string object S=x in any way, the Java runtime (the running JVM) takes this x to find out if there is a string object of the same content in the string pool, and if it does not, creates a string s in the pool, otherwise it is not added to the pool.
java, Whenever you use the New keyword to create an object, you must create a new object (in the heap or stack area).
Specifically, you can see http://www.cnblogs.com/heima-jieqi/archive/2012/04/10/2440086.html.
This article is from "Rick" blog, please make sure to keep this source http://9025763.blog.51cto.com/9015763/1709820
Java discussion on = = and equals