Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在文章“字符串为什么不可变”中,没有提及线程安全问题 #131

Open
WJZ-P opened this issue Nov 25, 2024 · 0 comments

Comments

@WJZ-P
Copy link

WJZ-P commented Nov 25, 2024

https://javabetter.cn/string/immutable.html

王二作者你好,我在学习的过程中发现您的这篇文章内没有提及String类不可变的一个重要原因是为了防止线程安全问题。请问是有什么原因吗,希望能够进行补充。另外此篇文章下的两个评论我认为也有道理。文章中的一些例子有可以改进的地方。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant