Published in : 2022-03-02
I am always confused, when it comes about String, String Buffer, String Builder, and new String('ABC') objects.
Practically, when do we need to use String Literals and new Objects? - I read Heap memory, String pool, and boolean things many time, but don't know about the practical scenario.
Can someone explain about the practical scenario?
Join our community and get the chance to solve your code issues & share your opinion with usSign up Now