首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序 public class ExampleStringBuffer { public static void main(String[] args) { StringBuffer sb=new Stri
阅读下面程序 public class ExampleStringBuffer { public static void main(String[] args) { StringBuffer sb=new Stri
admin
2012-03-21
36
问题
阅读下面程序 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
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/762p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
从键盘输入3个数作为三角形的边长,在屏幕上显示输出由这3个边长构成三角形的面积(保留2位小数)。请完善代码。a,b,c=eval(input())P=(a+b+c)/2area=pow(p*(p-a)•(p-b)*(p-c),0.5)print(①
给出如下代码:foriinrange(10):print(chr(ord(’’!’’)+i),end=’’’’)以下选项中描述错误的是
给出如下代码:foriinrange(6):print(chr(ord(9801)+i),end=’’’’)以下选项中描述正确的是
下面代码的输出结果是>>>oct(一255)
给出如下代码:s=’’Alice’’print(s[::一1])上述代码的输出结果是
下面代码的输出结果是>>>x=’’HappyBirthdaytoyou!’’>>>x*3
下面代码的执行结果是a=10.99print(complex(a))
下面代码的执行结果为a=123456789b=’’*’’print(’’{0:{2}>{1},}\n{0:{2}∧{1},}\n{0:{2}
下面代码的输出结果是x=10y=4print(x/y,x//y)
下面代码的输出结果是x=0b1010print(x)
随机试题
正值换毛时期的家禽烫制煺毛较容易。()
下列与DNA解链无关的酶或蛋白是
A.全身疲劳B.怠工C.劳动条件差D.不良操作体位E.工艺流程自动化紧张反应的表现是
血浆凝固酶是金黄葡萄球菌产生的侵袭性酶,其主要作用为
A.硅胶色谱B.氧化铝色谱C.离子交换色谱D.聚酰胺吸附色谱E.凝胶色谱分离生物碱类化合物优先采用
支气管扩张大咯血窒息病人应采取的正确卧位是
某社区的社会工作者张亭同时也是一个肢体残疾者,她发现社区内的残疾人迫于生计或碍于残疾,很少和人接触,残疾人之间的联系也非常少,对此她认为残疾人士非常需要融入社会。因此,张亭开始筹划建立“爱心驿站”,在“爱心驿站”建立后每周至少有一次活动,也有很多志愿者参与
某信息系统项目包含A、B、C、D、E、F、G、H、I、J十个活动。各活动的历时、成本估算值、活动逻辑关系如下表所示:(1)请计算活动H、G的总浮动时间和自由浮动时间。(2)请指出该项目的关键路径。(3)请计算该项目的总工期。
【B1】【B6】
A、Bygettinghelpfromthegovernment.B、Bytakingparttimejobs.C、Bygettinghelpfromthelocalcommunities.D、Bywinningsc
最新回复
(
0
)