首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.
下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.
admin
2009-02-15
24
问题
下列程序的执行结果是 ( ) public class Test { public int aMethod() { satic int i=0; i++; System.out.println(i); } public static void.main(String args[]) { Test test=new Test(); test.aMethod(); }
选项
A、编译错误
B、0
C、1
D、运行成功,但不输出
答案
1
解析
转载请注明原文地址:https://kaotiyun.com/show/18np777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
以下正确的赋值语句是
从工程管理角度看,软件设计一般分为两步完成,它们是
下列选项中不属于软件生命周期开发阶段任务的是()。
下面有关数据库表和自由表的叙述中,错误的是
以下描述中错误的是
在一个空的表单中添加一个选项按钮组控件,该控件可能的默认名称是()。
(1)扩展VisualFoxPro基类Form,创建一个名为MyForm的自定义表单类。自定义表单类保存在名为myelasslib的类库中。自定义表单类MyForm需满足以下要求:①其AutoCenter属性的默认值为.T.。②其Cl
结构化程序的三种基本结构是()。
下面是一个Applet程序,其功能是通过两个文本框获得用户输入的两个数,按回车键计算这两个数的商。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。源程序文件代码清单如下:importjava.awt.*;import
随机试题
男性20岁,右眼睑红肿、流泪2天,伴大量黄色脓性分泌物,结膜充血水肿明显,角膜透明、前房正常,应进一步检查
患者男,68岁。因右上尖牙残根要求拔除。患者既往患有高血压史10年,糖尿病5年。今测BP120/80mmHg,空腹血糖8.0mmol/L。应为患者选用何种麻醉药物
【背景资料】某公司拟投标某市政工程,该工程技术要求较高,而该公司在这类工程的施工中有丰富的业绩和较高声誉。招标单位提供的招标文件提供了工程量清单。在购买标书后,对报价部分采用了如下计算法,工程量直接使用清单数量,价格使用某定额站的信息价格。由于措施项目
在下列情形中,代理人应当向被代理人承担民事责任的有()。
室内消火栓手轮轮缘上应明显地铸出标示开关方向的箭头和字样,手轮直径应符合要求,如常用的SN65型手轮直径不应小于()mm。
证券价格反映了全部公开的信息,但不反映内幕信息,这样的市场称为()。
()的问世,标志着我国古代建筑技术已经发展到较高的阶段,它是我国和世界建筑史上的珍贵资料。
(2013年真题)根据我国合同法规定,以书面形式作出承诺的,承诺的生效时间是()。
假定在工程文件中有一个标准模块,其中定义了如下记录类型TypeBooksNameAsString*10TelNumAsString*20EndType要求在
硬盘属于
最新回复
(
0
)