string-constructor
Java String.String() Java Java String String objects can be created by either using literals: String s = “a string”; or by calling one of the constructors: String s = new String(“a string”); If we use the String literal, it’ll try to reuse already existing object from the String constant pool. On… Continue Reading string-constructor