Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
mohamed sanaullah wrote:Its always ideal to search in the forum first. And Agree with Jesper that this is the most commonly asked question.
To the JavaRanch Team: Why not have a FAQ on this? Or is there one already?
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
Prince Sewani wrote:Hey i searched but bingo..i didn't find it jesper ...
Jesper de Jong wrote:
Prince Sewani wrote:Hey i searched but bingo..i didn't find it jesper ...
Ok, I did a search for "difference new string" and found for example these:
Difference between String s
New String
What is the difference in String a = "abc" and String a = new String("abc")
difference between two string object
String creation
Any one explain the following one
Creating new Strings
strings and string pool
Difference between String s = "Marcus"; vs String s2 = new String("Marcus");
String!!!
Also see Strings, Literally from the JavaRanch Journal.
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
| Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |