• 2022-06-07
    5、下列程序的运行结果是()。public static void main( String[] args ){StringBuffer sb = new StringBuffer();sb.append("qq").append("ww");show( sb, "ss" );System.out.println( sb.length() );}public void show( StringBuffer sb, String str ){sb.append( str );}
    A: 4
    B: 2
    C: 6
    D: 0
  • 举一反三