7 Questions on String and String Pool
A String is a sequence of characters like “Hello” or “123”. In Java, String is a class, not a primitive type, and it’s used to store text. 1. What is the String Pool in Java? The String Pool is a special area in memory where Java stores unique string literals. If you create two strings … Read more