




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
外文翻译原文及译文学 院计算机学院专 业计算机科学与技术班 级学 号姓 名指导教师负责教师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 write 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 most 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 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 with 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 softwareproducts 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 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 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 fromcandc+, 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 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, 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 of 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, converts 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 according 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 java 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 operating 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 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 that 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. tandjava.iolibraries implement an abstraction layer in native os code, then provide a standard interface 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 providing 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 (microsofts 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 other 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 language 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, 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 evolving 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 technology.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 ofnetscape 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),这意味着能在一个平台上运行的代码,不需要重新编译就可以在另一个平台上运行。java应用程序通常被编译成字节码(类文件),这样就可以在任何java虚拟机(jvm)上运行,并且不用理会计算机的体系结构。java是直到2012年为止正在被广泛使用的最流行的编程语言之一,特别是客户机服务器的web应用程序,现在有将近一千万个用户在使用。java是由sun公司(现已并入甲骨文公司)的james gosling于1995年作为sun公司java平台的一个核心组件来开发以及发布的。java语言的语法来源于c语言和c + +,但java语言与它们相比则拥有了fewer low的水平设施。原始并参考的实现java编译器,虚拟机和类库的功能是sun公司在1991年开发并且在1995年首次发表的。截至2007年5月,为了与java进程组织的规范相符,sun公司使其大部分的java技术在gnu通用公共许可证的规范下重新获得许可。其他公司也开发了多样的实现技术来替代sun公司的这些技术,比如gnu编译器的java和gnu 的类路径等。java是一组来自sun microsystems公司(已并入甲骨文公司)的几个计算机软件产品和规格,它们共同提供了一个用于开发应用软件并将其部署在平台的计算环境系统。java是一个被广泛的用于包括从嵌入式设备和移动手机这些低端的应用,到企业服务器和超级计算机这些高端的应用的计算平台。虽然不常见,但是java applet有时也会在桌面电脑浏览万维网时被用来提供改进和安全功能。写java编程语言是将生产代码部署为java字节码的主要方法。然而,字节码编译器却可供如ada、javascript、python和ruby等其他语言使用。 一些新设计的语言能够在本地运行java虚拟机(jvm),比如scala、clojure和groovy,虽然这些语言的java语法在很大程度上借鉴于c语言和c + +,但面向对象的特性是仿照smalltalk和objective c语言来设计完成的。java消除了某些低级的构造例如指针,java还有一个非常简单的内存模型,在这个内存模型中的每个对象都可以在堆上分配空间并且变量引用的所有对象类型都可以使用。内存管理是由jvm提供的通过集成自动垃圾收集处理的。有一个版本的java平台的名字来自一束相关的来自sun公司的的程序,这个程序允许发展并且运行由java编程语言编写的程序。这个平台不针对任何一个处理器和操作系统,而是一个以便java程序可以运行在所有平台的执行引擎(称为虚拟机)和一个编译器以及一组实现对各种硬件和操作系统的功能的库。java平台是由多个程序组成的,每个程序都提供整体功能的一部分。例如,java编译器,它能将java源代码为转变为java字节码(一种中间语言的jvm),提供作为java开发的工具包(jdk)。java的运行环境简称为jre,是用即时(jit)编译器来补充jvm并将中间字节码转换为机器码,重新测试来检验产品内部动作是否按照规格说明本机代码来运行的软件。一套内容广泛并且多种多样的库同样是java平台的一部分。java语言的编译器、库和运行环境是java平台中十分必要的组件,在这个java平台上的中间字节码的“执行”操作是根据虚拟机规范而制定的规则来执行的。在大多数现代操作系统中,大量的可重用的代码可以用来简化程序员的工作。这样的一段代码通常是在运行时提供了一组动态可加载的库,当应用程序在运行时就可以调用这些库了。因为java平台是不依赖于任何特定的操作系统的,所以应用程序就不依赖于任何已有的操作系统库。相反的是, java平台提供了一组全面的具有自己的标准的类库,这些类库具有普遍存在于现代操作系统中的同样的可重用功能。大多数的操作系统库也是用java编写的。例如,描绘用户界面和处理事件本身的swing库, 用于消除不同的平台处理类似的组件所用的不同的方法之间微妙的差异。java库在java平台内服务主要具有三个目的。首先,像其他标准代码库一样,java库提供给程序员一系列众所周知的函数执行时常见的任务,比如维护列表条目或者执行复杂的字符串解析等。其次,这个类库提供给程序员一个抽象的接口任务,这个任务通常依赖于硬件和操作系
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 山西人证考试试题及答案
- 公考水果考试题及答案
- 校区运营基础知识培训课件
- 2025年福州市红庙岭垃圾综合处理中心招聘考试笔试试题(含答案)
- 医疗机构医疗废物综合管理考核试题及答案
- 2025年药物临床试验及伦理相关知识培训试题及答案
- 2024年劳务员之劳务员基础知识模考模拟试题【附答案】
- 树的速写课件
- 重症护理知识考核试题及答案
- 临床护理技术操作常见并发症预防及处理习题(有答案)
- 2025年秋季新学期教学工作会议上校长讲话:我们是不是“跑偏”了
- 2025年计算机一级考试题库(附答案)
- 人卵母细胞成熟度分级
- 2025年四川大学生服务基层项目招募考试(医学基础知识)历年参考题库含答案详解(5套)
- 刑法基本原则课件
- 2025年会议接待考试题库
- 2025年贵州省中考英语试卷
- 政府职能边界界定-洞察及研究
- 广州市越秀区招聘卫生健康系统事业单位事业编制人员考试真题2024
- 全国律师会费管理办法
- 危险源辨识、评价及控制培训
评论
0/150
提交评论