单项选择题

定义有StringBuffer s1=new StringBuffer(10);s1.append(“1234”)则s1.length()和s1.capacity()分别是多少?

A.4;10
B.4;4
C.10;10
D.10;4