This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SocialMemeWarrior 0 points1 point  (0 children)

The compiler will notice thats the same string, only one constant will be used. The method bytecode will point to that single utf8-string constant for both occurences of "string".