填空题

在面向对象方法中,信息隐蔽是通过对象的 【1】 来实现的。

【参考答案】

封装性
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果为( )。 public class Reentrant { public synchronized void a() { b(); System.out.println( here I am,in a() ); } public synchronized void b() { System.out.println( here I am,in b() ); } public static void main(String args[]) { Reentrant r=new Reentrant(); r.a(); } }
A.here I am,in a()/here I am,in b()
B.here I am,in b()/here I am,in a()
C.here I am,in a()
D.here I am,in b()
单项选择题
如下的代码段中,如果方法unsafe()正常运行,那么结果是( )。 public void example() { try { unsafe(); System.out.println( Testl ); }catch(SafeException e) { System.out.println( Test 2 ); }finally{ System.out.println( Test 3’); } System.out.println( Test 4 ); }
A.Test 3 Test 4
B.Test1 Test3 Test4
C.Test1 Test3
D.Test1 Test4
相关试题
  • 下列JApplet使用重写paintComponet()方法...
  • 现在有Java Applet小程序的源程序文件MyAp...
  • 任何非空树中有且仅有—个结点没有前驱结点...
  • 编写同时具有Applet与Application特征的程...
  • 有如下代码片段,请在画线处填入正确的代码...