单项选择题

请阅读下面程序
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
题目列表

你可能感兴趣的试题

微信扫码免费搜题