请阅读下面程序 public class ExampleStringBuffer{ public static void main(String[]args){

计算机 程序,正确答案,结果 已帮助 人

请阅读下面程序 public class ExampleStringBuffer{ public static void main(String[]args){ StringBuffer sb=new StringBuffer("test"); System.OUt.println("buffer="+sb); System.OUt.println("length="+sb.length );}} 程序运行结果中在"length="后输出的值是()。

A.10

B.4

C.20

D.30

请帮忙给出正确答案和分析,谢谢!

热搜:下面程序的功能是输出数组s中最大元素