Java编程语言外文翻译、英汉互译、中英对照

上传人:无*** 文档编号:79662514 上传时间:2022-04-24 格式:DOC 页数:8 大小:83.52KB
收藏 版权申诉 举报 下载
Java编程语言外文翻译、英汉互译、中英对照_第1页
第1页 / 共8页
Java编程语言外文翻译、英汉互译、中英对照_第2页
第2页 / 共8页
Java编程语言外文翻译、英汉互译、中英对照_第3页
第3页 / 共8页
资源描述:

《Java编程语言外文翻译、英汉互译、中英对照》由会员分享,可在线阅读,更多相关《Java编程语言外文翻译、英汉互译、中英对照(8页珍藏版)》请在装配图网上搜索。

1、外文翻译原文及译文学 院计算机学院专 业计算机科学与技术班 级学 号姓 名指导教师负责教师Java(programming language)Javais ageneral-purpose,concurrent,class-based,object-orientedcomputer program- -ming languagethat is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers writ

2、e once, run anywhere (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typicallycompiledtobyte code(class file) that can run on anyJava virtual machine(JVM) regardless ofcomputer architecture. Java is, as of 2012, one of the m

3、ost popular programming languages in use, particularly for client-server web applications, with a reported 10 million users.Java was originally developed byJames GoslingatSun Microsystems(which has sincemerged into Oracle Corporation) and released in 1995 as a core component of Sun MicrosystemsJava

4、platform. The language derives much of itssyntaxfromCandC+, but it has fewer low-levelfacilities than either of them.The original andreference implementationJavacompilers, virtual machines, andclass librarieswere developed by Sun from 1991 and first released in 1995. As of May 2007, in compliance wi

5、th the specifications of theJava Community Process, Sun relicensed most of its Java technologies under theGNU General Public License. Others have also developed alternative implementations of these Sun technologies, such as theGNU Compiler for JavaandGNU Classpath.Javais a set of severalcomputer sof

6、twareproducts and specifications fromSun Microsystems(which has since merged withOracle Corporation), that together provide a system for developingapplication softwareand deploying it in across-platformcomputing environment. Java is used in a wide variety ofcomputing platformsfromembedded devicesand

7、 mobile phoneson the low end, toenterprise serversandsupercomputerson the high end. While less common,Java appletsare sometimes used to provide improved and secure functions while browsing theWorld Wide Webondesktop computers.Writing in theJava programming languageis the primary way to produce code

8、that will be deployed asJava bytecode. There are, however, byte codecompilersavailable for other languages such asAda,JavaScript,Python, andRuby. Several new languages have been designed to run natively on theJava Virtual Machine(JVM), such asScala,ClojureandGroovy.Java syntaxborrows heavily fromCan

9、dC+, but object-oriented features are modeled afterSmalltalkandObjective-C. Java eliminates certain low-level constructs such aspointersand has a very simple memory model where every object is allocated on the heapand all variables of object types arereferences. Memory management is handled through

10、integrated automaticgarbage collectionperformed by the JVM.An edition of theJava platformis the name for a bundle of related programs from Sun that allow for developing and running programs written in theJavaprogramming language. The platform is not specific to any one processor oroperating system,

11、but rather an execution engine (called avirtual machine) and a compiler with a set of libraries that are implemented for various hardware and operating systems so that Java programs can run identically on all of them. The Java platform consists of several programs, each of which provides a portion o

12、f its overall capabilities. For example, the Java compiler, which converts Java source code into Java byte code (an intermediate language for the JVM), is provided as part of theJava Development Kit(JDK). TheJava Runtime Environment(JRE), complementing the JVM with ajust-in-time (JIT) compiler, conv

13、erts intermediate byte code into native machine code on the fly. An extensive set of libraries are also part of the Java platform.The essential components in the platform are the Java language compiler, the libraries, and the runtime environment in which Java intermediate byte code executes accordin

14、g to the rules laid out in the virtual machine specification.In most modernoperating systems(OSs), a large body of reusable code is provided to simplify the programmers job. This code is typically provided as a set of dynamically loadable librariesthat applications can call at runtime. Because the J

15、ava platform is not dependent on any specific operating system, applications cannot rely on any of the pre-existing OS libraries. Instead, the Java platform provides a comprehensive set of its own standard class libraries containing much of the same reusable functions commonly found in modern operat

16、ing systems. Most of the system library is also written in Java. For instance,Swinglibrary paints the user interface and handles the events itself, eliminating many subtle differences between how different platforms handle even similar components.The Java class libraries serve three purposes within

17、the Java platform. First, like other standard code libraries, the Java libraries provide the programmer a well-known set of functions to perform common tasks, such as maintaining lists of items or performing complex string parsing. Second, the class libraries provide an abstract interface to tasks t

18、hat would normally depend heavily on the hardware and operating system. Tasks such as network access and file access are often heavily intertwined with the distinctive implementations of each platform. Theandjava.iolibraries implement an abstraction layer in native OS code, then provide a standard i

19、nterface for the Java applications to perform those tasks. Finally, when some underlying platform does not support all of the features a Java application expects, the class libraries work to gracefully handle the absent components, either by emulation to provide a substitute, or at least by providin

20、g a consistent way to check for the presence of a specific feature.The success of Java and itswrite once, run anywhereconcept has led to other similar efforts, notably the.NET Framework, appearing since 2002, which incorporates many of the successful aspects of Java. .NET in its complete form (Micro

21、softs implementation) is currently only fully available on Windows platforms, whereas Java is fully available on many platforms. .NET was built from the ground-up to support multiple programming languages, while the Java platform was initially built to support only the Java language, although many o

22、ther languages have been made for JVM since.NET includes a Java-like language calledVisual J#(formerly namedJ+) that is incompatible with the Java specification, and the associated class library mostly dates to the old JDK 1.1 version of the language. For these reasons, it is more a transitional lan

23、guage to switch from Java to the .NET platform, than a first class .NET language. Visual J# was discontinued with the release of Microsoft Visual Studio 2008. The existing version shipping withVisual Studio 2005will be supported until 2015 as per the product life-cycle strategy.In June and July 1994

24、, after three days of brainstorming withJohn Gage, the Director of Science for Sun, Gosling, Joy, Naughton,Wayne Rosing, andEric Schmidt, the team re-targeted the platform for theWorld Wide Web. They felt that with the advent of graphicalweb browserslikeMosaic, the Internet was on its way to evolvin

25、g into the same highly interactive medium that they had envisioned for cable TV. As a prototype, Naughton wrote a small browser, Web Runner (named after the movieBlade Runner), later renamedHot Java. That year, the language was renamedJavaafter atrademarksearch revealed thatOakwas used byOak Technol

26、ogy.Although Java 1.0a was available for download in 1994, the first public release of Java was 1.0a2 with the Hot Java browser on May 23, 1995, announced by Gage at theSun Worldconference. His announcement was accompanied by a surprise announcement byMarc Andreessen, Executive Vice President ofNets

27、cape Communications Corporation, that Netscape browsers would be including Java support. On January 9, 1996, the Java Soft group was formed by Sun Microsystems to develop the technology.3Java编程语言Java是一种通用的,并发的,基于类的并且是面向对象的计算机编程语言,它是为实现尽可能地减少执行的依赖关系而特别设计的。开发java语言的目的是让应用程序开发商实现“一次编写,到处运行”(WORA),这意味着能

28、在一个平台上运行的代码,不需要重新编译就可以在另一个平台上运行。Java应用程序通常被编译成字节码(类文件),这样就可以在任何Java虚拟机(JVM)上运行,并且不用理会计算机的体系结构。Java是直到2012年为止正在被广泛使用的最流行的编程语言之一,特别是客户机服务器的Web应用程序,现在有将近一千万个用户在使用。Java是由Sun公司(现已并入甲骨文公司)的James Gosling于1995年作为Sun公司Java平台的一个核心组件来开发以及发布的。java语言的语法来源于C语言和C + +,但java语言与它们相比则拥有了fewer low的水平设施。原始并参考的实现Java编译器,

29、虚拟机和类库的功能是Sun公司在1991年开发并且在1995年首次发表的。截至2007年5月,为了与Java进程组织的规范相符,Sun公司使其大部分的Java技术在GNU通用公共许可证的规范下重新获得许可。其他公司也开发了多样的实现技术来替代Sun公司的这些技术,比如GNU编译器的Java和GNU 的类路径等。Java是一组来自Sun Microsystems公司(已并入甲骨文公司)的几个计算机软件产品和规格,它们共同提供了一个用于开发应用软件并将其部署在平台的计算环境系统。Java是一个被广泛的用于包括从嵌入式设备和移动手机这些低端的应用,到企业服务器和超级计算机这些高端的应用的计算平台。虽

30、然不常见,但是Java applet有时也会在桌面电脑浏览万维网时被用来提供改进和安全功能。写Java编程语言是将生产代码部署为Java字节码的主要方法。然而,字节码编译器却可供如Ada、JavaScript、Python和Ruby等其他语言使用。 一些新设计的语言能够在本地运行Java虚拟机(JVM),比如Scala、Clojure和Groovy,虽然这些语言的Java语法在很大程度上借鉴于C语言和C + +,但面向对象的特性是仿照Smalltalk和objective C语言来设计完成的。Java消除了某些低级的构造例如指针,java还有一个非常简单的内存模型,在这个内存模型中的每个对象都

31、可以在堆上分配空间并且变量引用的所有对象类型都可以使用。内存管理是由JVM提供的通过集成自动垃圾收集处理的。有一个版本的Java平台的名字来自一束相关的来自Sun公司的的程序,这个程序允许发展并且运行由Java编程语言编写的程序。这个平台不针对任何一个处理器和操作系统,而是一个以便Java程序可以运行在所有平台的执行引擎(称为虚拟机)和一个编译器以及一组实现对各种硬件和操作系统的功能的库。Java平台是由多个程序组成的,每个程序都提供整体功能的一部分。例如,Java编译器,它能将Java源代码为转变为Java字节码(一种中间语言的JVM),提供作为Java开发的工具包(JDK)。Java的运行

32、环境简称为JRE,是用即时(JIT)编译器来补充JVM并将中间字节码转换为机器码,重新测试来检验产品内部动作是否按照规格说明本机代码来运行的软件。一套内容广泛并且多种多样的库同样是Java平台的一部分。Java语言的编译器、库和运行环境是java平台中十分必要的组件,在这个Java平台上的中间字节码的“执行”操作是根据虚拟机规范而制定的规则来执行的。在大多数现代操作系统中,大量的可重用的代码可以用来简化程序员的工作。这样的一段代码通常是在运行时提供了一组动态可加载的库,当应用程序在运行时就可以调用这些库了。因为Java平台是不依赖于任何特定的操作系统的,所以应用程序就不依赖于任何已有的操作系统

33、库。相反的是, Java平台提供了一组全面的具有自己的标准的类库,这些类库具有普遍存在于现代操作系统中的同样的可重用功能。大多数的操作系统库也是用Java编写的。例如,描绘用户界面和处理事件本身的Swing库, 用于消除不同的平台处理类似的组件所用的不同的方法之间微妙的差异。Java库在Java平台内服务主要具有三个目的。首先,像其他标准代码库一样,Java库提供给程序员一系列众所周知的函数执行时常见的任务,比如维护列表条目或者执行复杂的字符串解析等。其次,这个类库提供给程序员一个抽象的接口任务,这个任务通常依赖于硬件和操作系统。任务,如网络访问和文件访问,通常是相互交错的独特的各平台的实现。

34、和java的io库先在本地操作系统代码中实现一个抽象层,然后再提供一个具有标准接口的Java应用程序来执行这些任务。最后,当一些底层平台不支持一个Java应用程序所期望的所有的功能时,类库的工作就是要优雅地处理这些缺席,或者通过仿真组件提供一个替代,或至少提供一个一致的方式来检测是否有某一个特定的功能。Java成功和它的一次的编写,到处运行的概念导致了其他类似的产品的诞生,尤其是.NET框架,它自2002年出现以来,包含了许多Java成功的方面。在完整形式的.NET框架中(微软的实现),目前仅可以完全的在Windows平台上运行,而Java是完全可以在许多不同的平台上运行的。.NET框架为了支

35、持多种编程语言而重新创建,而Java平台最初的建立只是为了支持Java语言,尽管许多其他语言也是为了JVM而创建的。.NET框架包含了一个类似于Java语言被称为视觉J #(原名J + +)的语言,但是这个语言不兼容Java规范和相关的类库,这个语言可以追溯到古老的JDK 1.1版本。由于这些原因,J#语言对比于.NET框架来说,是一个从Java平台到.NET平台过渡的语言切换。视觉J #语言已经于微软Visual Studio 2008版本开始停止发布。直到2015年为止,现有版本的语言与Visual Studio 2005将支持按照产品生命周期策略来运行。1994年6月到7月,经过与Sun

36、公司的领导者约翰三天的头脑风暴,Sun公司的科学执行官高斯林与怀勒、诺顿、韦恩罗辛、埃里克施密特所组成的团队决定将这个有针对性的平台为万维网再保险。他们认为,随着图形web浏览器的发展,互联网正在演变成相对于电视来说相同高度的互动。Java的成功和其编写一次,到处运行的概念导致了其他类似的语言都以它作为原型,诺顿编写了一个小型的浏览器,网页的跑步者(以电影银翼杀手的名字命名的),后来改名为HotJava。那一年, 搜索后显示为Java语言商标改名,橡树被橡木技术所运用。尽管Java 1.0是一个可供下载的版本,但是在1994年,第一次公开发布的Java 1.0 a2与HotJava浏览器才是第一次真正意义上的可以开源下载Java平台。1995年5月23日,Gage在年内公布计会议上发表,他的发言伴随着一项由网景公司的执行副总裁马克安德烈森带来的出人意料的公告, 网景浏览器将获得Java的支持。1996年1月9日, 由Sun Microsystems公司组成的JavaSoft集团来负责开发这项技术。

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!