下面是一段javabean程序,该程序的运行结果是()publicclassNullTest{publicstaticvoidmain(String[]?args){intM=0;Stringstr=null;StringBuffersb=newStringBuffer("=");sb.append(str);sb.append(M++);System.out.println(sb.toString());}}
A.=null B.=null0 C.=null1 D.=nullM正确答案B
下面是一段javabean程序,该程序的运行结果是()publicclassNullTest{publicstaticvoidmain(String[]?args){intM=0;Stringstr=null;StringBuffersb=newStringBuffer("=");sb.append(str);sb.append(M++);System.out.println(sb.toString());}}
A.=null B.=null0 C.=null1 D.=nullM正确答案B