or double quote. • String is an immutable(not allowed Modification) • for each modification on the string object it creates separate objects in the memory • String concept is also thread safe bcz we can’t modify the object. • if we try to modify a new object will create so all immutable objects are thread safe (even wrapper classes) . • Example: String s="Java";
Memory. • It only store object of String which has been created using String Literal. • Never accept duplicate String Object. • If we try to create duplicate Object of String instead of creating new one it provide only object Reference.