首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
请在每条横线处填写一个语句,使程序的功能完整,且输出结果为911。 注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。 public class Outer { public
请在每条横线处填写一个语句,使程序的功能完整,且输出结果为911。 注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。 public class Outer { public
admin
2009-01-15
20
问题
请在每条横线处填写一个语句,使程序的功能完整,且输出结果为911。
注意:请勿改动main()主方法和其他已有的语句内容,仅在横线处填入适当的语句。
public class Outer
{
public static void main(String args[])
{
Outer i=new Outer();
i.taskInner();
}
public class lnner
{
private int size;
public void doSomething(int size)
{
__________//访问局部变量
this.size++;//访问内部类的成员变量
__________//访问外部类的成员变量
System.out.println(size+" "+this.size+" "+Outer.this.size);
}
}
public void tasklnner()
{
__________
k.doSomething(8);
}
private static int size;
}
选项
答案
size++; Outer.this.size++; Inner k=new lnner();
解析
转载请注明原文地址:https://kaotiyun.com/show/hGnp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
假设“订单”表中有订单号、职员号、客户号和金额字段,正确的SQL语句只能是
在SQLSELECT语句中,为了查询结果存储到临时表,应该使用短语
下列程序段执行以后,内存变量y的值是x=34567y=0DOWHILEx>0y=x%10+y*10x=int(x/10)ENDDO
在VisualFoxPro中,用于建立或修改程序文件的命令是
下面属于表单方法名(非事件名)的是
扩展名为.scx的文件是
创建一个名为student的新类,保存新类的类库名称是mylib,新类的父类是Person,正确的命令是
(1)利用查询设计器创建查询,从customers、orders、orderitems和goods表中查询所有客户号前两个字符为“06”的客户签订的订单信息。查询结果依次包含客户号、订单号、商品号、商品名和数量五项内容。各记录按客户号升序排序、客户号相同按
(1)打开表单one,如图3-21所示,通过设置控件的相关属性,使得表单运行时的开始焦点在“打开”命令按钮,并且接下来的焦点的移动顺序是“关闭”和“退出”。(2)打开表单two,使用“布局”工具栏的“顶边对齐”按钮将表单中的3个命令按钮控件的顶边对齐。
随机试题
A.碘海醇B.泛影葡胺C.注射用六氟化硫微泡(声诺维)D.131IE.18FDG属于离子型造影剂的是
A.寻常型天疱疮B.落叶型天疱疮C.大疱性类天疱疮D.获得性大疱性表皮松解症E.疱疹样皮炎水疱发生于棘层下部的疾病是
下列表述中,完全正确的组合是:()①西周时期的契约分为买卖契约和借贷契约,买卖契约称为“傅别”,借贷契约称为“质剂”。②一夫一妻制、同姓不婚、父母之命是西周时期婚姻缔结的三大原则,而且合礼合法的婚姻必须通过特定的程序方告成立,即“六礼”。
对沥青混合料矿料级配的抽检、取样应在摊铺现场进行。( )
下列关于补偿器的叙述正确的是()。
一家企业在整个业务流程的所有环节上都努力运用科学的方法提高效率,减少失误率,以使整个流程达到最优状态来满足客户的要求。这种绩效改进方法是()。
某市一化工厂储备了一种化学药品,这种药品若储藏不好,就会造成放射性污染。但在购进这批药品时,已根据专家检验,存放、设备、密封等都不存在违反规定问题,不会造成污染。但仍然有消息传出说这种物质已经泄漏,并且会对人体造成很大影响。媒体也根据这些小道消息做了报道,
(2019年上海)统筹党政群机构改革不是简单地党政分开或党政合一,而是要在改革和完善党的领导方式与执政方式上下功夫,其基本原则不包括()。
学生在学校应该学习的一门学科或应该从事的一种活动的内容及其有计划的进程,这是指______。
设向量组(I)α1,α2,…,αn,其秩为r1,向量组(Ⅱ)β1,β2,…,βn,其秩为r2,且βi(i=l,2,…,s)均可以由α1,…α1线性表示,则().
最新回复
(
0
)