问题 单项选择题

关于Java语言的健壮性特点,下列说法不正确的是( )。

A. Java语言是一种强类型语言,即在编译和运行时进行大量的类型检查,防止不匹配的数据类型的发生

B. Java语言允许使用指针,这一点与c++相似

C. Java语言设计有自动收集垃圾功能,防止了内存分配的错误

D. Java语言使程序员从繁忙的内存管理中解脱出来

答案

参考答案:B

解析:Java语言的健壮性是因为Java语言很好的处理了最容易出错的数据类型不匹配和内存地址的计算错误。首先,Java语言在编译和连接是进行大量的类型检查,防止不匹配数据类型的发生,对非法数据类型将在编译和解释时指出。其次,Java语言不允许使用指针访问内存,更不允许使用指针数组访问内存。另外,Java语言设计有自动垃圾收集功能,它不仅防止了内存地址的计算的错误,也省去了编程时对内存进行分配的烦恼。注意:Java语言除了健壮性,还有其他的一些自己特有的特点和面向对象语言共有的特点,如动态性、多线程、跨平台和安全性等等。

单项选择题 案例分析题
单项选择题

The topic of cloning has been a politically and ethically controversial one since its very beginning. While the moral and philosophical aspects of the issues are entirely up to the interpretation of the individual, the application of cloning technology can be studied objectively. Many in the scientific community advocate the use of cloning for the preservation and support of endangered species of animals, which aside from cloning, have no other practical hope for avoiding extinction.

The goal of the use of cloning to avoid extinction is the reintroduction of new genes into the gene pool of species with few survivors, ensuring the maintenance and expansion of genetic diversity. Likely candidates for this technique are species known to have very few surviving members, such as the African Bongo Antelope, the Sumatran Tiger, and the Chinese Giant Panda. In the case of Giant Panda, some artificial techniques for creating offspring have already been performed, perhaps paving the way for cloning as the next step in the process.

With the estimated population of only about 1000 Giant Pandas left in the world, the urgency of the situation has led to desperate measures. One panda was born through the technique of artificial insemination in the San Diego Zoo in the United States. "Hua Mei" was born in 1999 after her parents, Hsing-Hsing and Ling-Ling, had trouble conceiving naturally.

The plan to increase the Giant Panda population through the use of cloning involves the use of a species related to the Giant Panda, the American Black Bear. Egg cells will be removed from female black bears and then fertilized with Panda cells such as those from Ling-Ling or Hsing-Hsing. The fertilized embryo will then re-implanted into the black bear, where it will grow and mature, until a new panda is delivered from the black bear host.

Critics of cloning technology argue that the emphasis on cloning as a method by which to preserve species will draw funding away from other methods, such as habitat preservation and conservation. Proponents of cloning counter that many countries in which many endangered species exist are too poor to protect and maintain the species’ habitats anyway, making cloning technology the only practical way to ensure that those species survive to future generations. The issue is still hotly debated, as both sides weigh the benefits that could be achieved against the risks and ethical concerns that constantly accompany any argument on the issue. (402 words)

Notes: ethically 道德上。gene pool 基因库。insemination n.受精。fertilize 使受精。embryo 胚胎。proponent支持者,拥护者。weigh A against B权衡A和B的利弊。

The main purpose of the last paragraph is to()

A. argue in favor of one side on a particularly controversial topic of cloning

B. display both sides’ arguments on another contentious issue in cloning

C. redirect the readers’ attention to the previously raised issue of ethics in cloning

D. provide further relevant information to the evaluation of cloning as a preservation technique