if (str_display.toString() == ""))和 if (str_result == null))有什么区别,

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/21 18:07:27
if (str_display.toString() ==
x)LS(.)O,.I+.)KTUPR|:G(4$WlN Ovv/;|QÜG s^,\|ɮ {zg6290E7

if (str_display.toString() == ""))和 if (str_result == null))有什么区别,
if (str_display.toString() == ""))和 if (str_result == null))有什么区别,

if (str_display.toString() == ""))和 if (str_result == null))有什么区别,
等于“” 表示值为“”;
等于null 表示声明了变量,而没有赋值.更表示为空的引用