Java – string foo = “bar” and string foo = new string in Android (“bar”)?
•
Java
I searched for this, but the keywords must be too generic to narrow the relevant bits Why are both ways of declaring strings in Android valid and what are the differences?
Solution
This is Java syntax, not only specific to Android This is a discussion of this String vs new String()
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码