摘要: String 真正不可变有下面几点原因: 保存字符串的数组被 final 修饰且为私有的,并且String 类没有提供/暴露修改这个字符串的方法。 String 类被 final 修饰导致其不能被继承,进而避免了子类破坏 String 不可变。 字符串拼接用“+” 还是 StringBuilder? 阅读全文
posted @ 2024-08-19 00:48 calvincalvin 阅读(25) 评论(0) 推荐(0)
摘要: 默认提示的一些可能优化规则,如重复创建stringbuilder对象 时序图 redis有哪些场景问题?如何解决 不要太多怀疑,相信就好了,不然会浪费时间 如何复盘做过的项目 如何讲高并发优化 todo 多实践一下做的事情 阅读全文
posted @ 2024-08-15 19:49 calvincalvin 阅读(15) 评论(0) 推荐(0)
摘要: 流行主题 https://bndong.github.io/Cnblogs-Theme-SimpleMemory/v2.1/dist https://esofar.github.io/cnblogs-theme-silence/#/showcase https://github.com/cnblog 阅读全文
posted @ 2024-07-21 21:51 calvincalvin 阅读(21) 评论(3) 推荐(0)
摘要: a aaa aaaa aaaaa a b c a b c @media only screen and (max-width:1365px) { .github-corner { display: none } } @media only screen and (max-width:1259px) 阅读全文
posted @ 2024-07-20 22:57 calvincalvin 阅读(39) 评论(0) 推荐(0)