qq群新成员监控:哪位热心人士可以帮忙翻译一下这篇计算机英语文章(02)!感激涕零!

来源:百度文库 编辑:高考问答 时间:2024/05/10 09:20:44
接上篇,谢谢大家!

Java provides all he luxuries of object-oriented programming:class

hierarchy,inheritance,encapsulation,and polymorphism--in a context that is truly useful and

efficient.
The main reason for developing object-oriented software,besides clarity and simplicity,is

the desperate hope that somehow the objects you develop will be reused.Java not only

encourages software reused.Java not only encourages software reuse,it demands it.To write

any sort of Java program,no matter how simple,you must build on the classes and methods of

the Java API.
Once you have begun developing software in Java,you have two choices:
● Build on the classes you have developed,thereby reusing them.
● Rewrite your software from scratch,copying and tailoring useful parts of existing

software.
With Java,the temptation to start from scratch is no longer appealing.Java's object-oriented

structure forces you to decelop more useful,more tailorable, and much simpler software the

first time around.
3.Java Is Safer and More Reliable
Java is safer to use than C++ because it keeps you from doing the things that you do

badly,while making it easier to do the things that you do well.
Java won't automatically convert data types.You have to explicitly convert from one class

another.C++,under the most undesirable conditions,will automatically convert one type to

another.It has all the flexibility of assembly code.Java doesn''t assume that you know what

you are doing.It makes sure that you do.
C++ pointers don'exist in Java.You can no longer access objects indirectly or by chance.You

don't need to.You declare objects and reference those objects directly.Complex pointer

arithmetic is avoided.If you need an indexed set of objects,you can use an array of

objects.The concept of "the address of an object" is eliminated from the programming errors

that go another assembly language dinosaur is laid to rest.As a result,it becomes much

easier to do things correctly on Java.
Java's reliability extends beyond the language level to the compiler and the runtime

system.Compile-time checks identify many programming errors that go undetected in other

progamming languages.These checks go beyond syntactic checking to ensure that statements are

semantically correct.
Runtime checks are also more extendsive and effective.Remember your teacher or mom telling

you to "Check your work twice to make sure it's right?"The Java linker understands class

types and performs compiler-level type checking,adding redundancy to reliability.It also

performs bounds checking and eliminates indirect object access,even under error conditions.
下面的那位老兄用翻译软件译的看得我头都大了还不知道其所言!

JAVA提供了面向对象编程最有价值的一切:类的分级结构、继承、封装 和多态(动态绑定)——在真正意义上既可用又高效的(一切)。

开发面向对象软件的主要原因,除简明性之外,是基于一种极端希望,那就是你开发出的对象将会被重用。

JAVA不仅鼓励软件复用,更需要软件复用。编写任何JAVA软件,无论多简单,必须基于JAVA API提供的类和方法。

一旦你开始用JAVA开发程序,你有两个选择:

● 基于你已开发的类,即复用它们。
● 基于对已有软件可用部分的挖补、复制、修改,重写你的软件。

对于JAVA,从挖补开始已不再吸引人。JAVA的面向对象结构使你不得不从一开始就开发更好用,更易于修改而且更简单的软件。

3.JAVA更安全且更可靠

JAVA比C++使用起来更安全,因为它使你远离那些你容易弄糟的部分,同时使你擅长的部分变得更为容易。

JAVA不会自动转换数据类型,你必须显式的将一个类型转换为另一个。C++在最不愿意看到的情况下,会自动将一个类型转换为另一个。它拥有汇编语言代码的所有灵活性。JAVA不会假设你知道你在做什么。它会确保你知道。

C++指针在JAVA里不存在。你无法间接地或是随机地访问对象。(因为)你无需这样做。你声明对象并且直接访问它们,避免了复杂的指针运算。
如果你需要一些编号的对象,你可以使用一个对象数组。“一个对象的地址”这一概念,就像另外一只“汇编语言恐龙”(注:恐龙代表过时但顽固的东西)一样,从编程错误中消失。
所以,在JAVA里更容易把事情做对。

JAVA的可靠性从语言级别一直延伸到编译器和运行系统级别。
编译阶段可以检查出许多在别的语言(编译)中无法检查出的错误。这些检查不仅可以针对语法甚至可以保证语句在语义上的正确性。

运行中的检查也更高效且更具扩展性。想想你的老师和母亲总对你说:“检查你的作业两次来保证你做对了。” JAVA连接器理解类的类型并且进行编译器级的类型检查,增加了可靠性的冗余(检查)。而且它还会进行边界检查,甚至在出错的情况下,也会消除
间接对象访问。

爪哇提供全部他物体的奢侈-定向规画:班级

阶级组织,遗传,封包和多形--在真正有用的上下文和

有效率的。
发展物体的主要理由-定向软件,此外清楚和单纯,是

不顾死活希望不知何故物体你发展将会被重复使用。爪哇不只有

鼓励被重复使用的软件。爪哇不只鼓励软件重复使用,它要求它。写

任何种爪哇计画,没有物质如何简单的,你一定在班级和方法上建立

爪哇美国石油协会。
一经你已经在爪哇开始发展中的软件,你有二选择:
●在你已经发展,藉此重复使用他们的班级上建立。
●从头重写你的软件,复印和缝制有用部份现有的

软件。
藉由爪哇,诱惑从头不再开始是 appealing.Java 的物体-导向的

结构跟 decelop 强迫你更有用的,更可缝制的,和非常简单的软件那

首先在附近的时间。
3.爪哇更安全和更更可靠
爪哇比较安全使用胜于 C++ 因为它使你不做你做的事物

严重地,当使做你做得好的事物是比较容易的时候。
爪哇将不自动地转换数据类型。你必须明确地从一个班级转换

another.C++,在最不受欢迎的情况,将会自动地转换一打字到

另外的。它有集会密码的所有的柔性。爪哇 doesn''t 承担你知道什么

你正在做。它确定你做。
C++ 在爪哇的指针 don'exist。你能不再,通路间接地或偶然反对。你

不需要到。你宣布物体和叁考那些物体 directly.Complex 指针

算术被避免。如果你需要物体的被编入索引的组,你能使用排列

物体。" 物体的住址 " 的观念从规画错误被除去

那去另外的一只集会语言恐龙被安葬。结果,它多变成

比较容易的在爪哇上正确地做事物。
爪哇的可信度对编辑者和运行时间扩充超过语言水平

system.Compile-时间检查识别在其它里面变未被发现的许多规画错误

progamming 语言。这些检查超越句法的检查确定陈述是

与语意有关地改正。
运行时间检查也是较多的 extendsive 和有效的。记得你的老师或妈妈有效的

你对 "检查你的工作两次确定它是正确的 ?"爪哇连接器了解班级

类型而且运行检查,把多余加入可信度的编辑者级的类型。它也

运行检查,而且除去间接受词通路的范围,甚至在错误情况之下。