SyntaxFix
Write A Post
Hire A Developer
Questions
Second case is also inefficient in terms of String pool, you have to explicitly call intern() on return reference to make it intern.