there is my question that normally in java we create object with new operator but when we want to use String and String is also a class then we declare object without new operator why plz answer my question
Jump to Post
you didn't ask a question.
String is immutable, but it's soo often used, that having complete new instances in the memory would be a huge drain on the resources of your system.
in your memory there is also a String pool, used to group all instances of a String currently …