单选题

先阅读下面的程序片段,对于定义的变量,以下表达式的值为true的是哪个?()

Astr1==str2;

Bstr1.equals(str2);

Cstr1==str3;

D以上都不对

正确答案

来源:www.examk.com

答案解析