This week's book giveaway is in the Java in General forum. We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line! See this thread for details.
I read in Ch4 of Mala Gupta's book that if a string is created by directly placing a sequence of characters within a pair of " " AND without using the new operator, then the object created is placed in a pool of String objects.
I wonder whether the following piece of code also puts objects (with values Java and Oracle) in that pool since the new operator is not present.
I would appreciate a reply from anyone with decent knowledge of Java.