易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

public class Mycircle {  public double radius;  public double diameter;  public void setRadius(double radius)  this.radius = radius;  this.diameter= radius * 2;  }  public double getRadius()   {  return radius;  }  Which statement is true?()  

A、 The Mycircle class is fully encapsulated.

B、 The diameter of a given MyCircle is guaranteed to be twice its radius.

C、 Lines 6 and 7 should be in a synchronized block to ensure encapsulation.

D、 The radius of a MyCircle object can be set without affecting its diameter.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

  • Servlet间完成协作,需要用到()完成请求指派

    A、Requestdispatcher

    B、Responsedispatcher

    C、Servletdispatcher

    D、includedispatcher

  • Which two create an InputStream and open file the “file.txt” for reading? ()

    A

     InputStream in=new FileReader(“file.txt”);

    B

     InputStream in=new FileInputStream(“file.txt”);

    C

     InputStream in=new InputStreamFileReader (“file.txt”, “read”);

    D

     FileInputStream in=new FileReader(new File(“file.txt”));

    E

     FileInputStream in=new FileInputStream(new File(“file.txt”));

  • static void test() throws RuntimeException {  try {  System.out.print(”test “);  throw new RuntimeException();  }  catch (Exception ex) { System.out.print(”exception “); }  }  public static void main(String[] args) {  try { test(); }  catch (RuntimeException ex) { System.out.print(”runtime “); }  System.out.print(”end “);  }  What is the result?() 

    A、 test end

    B、 Compilation fails.

    C、 test runtime end

    D、 test exception end

    E、 A Throwable is thrown by main at runtime.

  • Microsoft's COM is a software(1)that allows applications to be built from binary software components. COM is the underlying architecture that forms the foundation for higher-level software services, like those provided by OLE. COM defines a binary standard for function calling between components,a way for components to dynarmically discover the interfaces implemented by other components, and amechanism to identify components and their interfaces uniquely. OLE is a compound(2)standard developed by Microsoft. OLE makes it possible to create(3)with one application and link or embed them in a second application.Embedded objects retain their original format and(4)to the application that created them. Support for OLE is builtinto the Windows and MacOS Operating Systems.A(5)compound document standard developed mainly by Apple and IBM is called OpenDoc. 空白(5)处应选择()

    A、completing

    B、competing

    C、connecting

    D、contained

  • 管理员需要做什么样的设置才能允许一个普通用户在没有获得管理员权限的情况下安装一个存储设备在可信任发行商列表中?()

    A

    在设备管理器中察看设备类的GUID在本地组策略控制台中, 设置允许非管理员用户安装驱动并关联该GUID

    B

    在注册表编辑器中找到 HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/ Current Version and 双击 DevicePath ,添加c:

    C

    将设备驱动复制到信任的发行商区域。

    D

    将设备驱动复制到设备驱动存储区域.

联系客服 会员中心
TOP