- 博客(4)
- 收藏
- 关注
原创 针对==和equals()根本区别和不同场景的使用限制
下面其实是自己总结的避坑方法吧,但可能自己的学习经历不是很深,所以下面只总结自己学到或者碰到的经验避坑,不知是否有所遗漏,欢迎有更牛逼的大佬可以指出对应遗漏。下面是面试可能会提问这种情况,但是自己总不能巴巴拉拉说一堆,人家又嫌太啰嗦,说口诀人家又听不懂,于是做了个相当于总结一句话回答吧!所以一般推荐的安全写法为:"abc".equals(str)== 比较的是值或地址,equals() 比较的是逻辑内容;基本类型只能用 ==,对象比较内容必须用 equals();
2026-02-07 15:29:57
314
原创 This application failed to start because it could not find or load the Qt Platform plugin “windows“
This application failed to start because it could not find or load the Qt Platform plugin "windows" in " ".Reinstalling the application may fix this problem.
2023-09-15 21:54:29
843
1
原创 python已停止工作,出现了一个问题,导致程序停止正常工作,请关闭该程序 或者Failed to create menus
python已停止工作,出现了一个问题,导致程序停止正常工作,请关闭该程序 ;Failed to create menus
2023-09-15 21:38:17
5137
原创 org.junit.platform.commons.JUnitException: TestEngine with ID ‘junit-vintage‘failed to discover test
Internal Error occurred.org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-vintage' failed to discover testsjava.io.IOException: Could not find resource mybatis-config.xml
2022-05-20 02:38:11
6247
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅