【译】About the Java Technology

About the Java Technology

Java technology is both a programming language and a platform.

The Java Programming Language

The Java programming language is a high-level(高级) language that can be characterized by(以…为特点) all of the following buzzwords(流行语):

  • Simple
  • Object oriented
  • Distributed (分布式的)
  • Multithreaded
  • Dynamic
  • Architecture neutral(。。。)
  • Portable(便捷的)
  • High performance (高性能)
  • Robust (健壮的)
  • Secure

Each of the preceding buzzwords(前面的流行语) is explained in The Java Language Environment , a white paper written by James Gosling and Henry McGilton.

In the Java programming language, all source code is first written in plain text(纯文本) files ending with the .java extension. Those source files are then compiled into .class files by the javac compiler. A .class file does not contain code that is native to your processor; it instead contains bytecodes — the machine language of the Java Virtual Machine1 (Java VM). The java launcher tool(启动程序工具) then runs your application with an instance of(一个实例) the Java Virtual Machine.

An overview of(概况) the software development process.

Because the Java VM is available on many different operating systems, the same .class files are capable of(有能力做) running on Microsoft Windows, the Solaris? Operating System (Solaris OS), Linux, or Mac OS. Some virtual machines, such as the Java SE HotSpot at a Glance, perform(执行) additional steps at runtime to give your application a performance boost(性能提升). This includes various tasks such as finding performance bottlenecks(性能瓶颈) and recompiling (to native code) frequently used(常用的) sections of code(部分代码).

Through the Java VM, the same application is capable of(有…能力) running on multiple platforms.

The Java Platform

A platform is the hardware or software environment in which a program runs. We‘ve already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS. Most platforms can be described as a combination of(…的组合) the operating system and underlying hardware(底层硬件). The Java platform differs from most other platforms in that it‘s a software-only(纯软件) platform that runs on top of other hardware-based(基于硬件的) platforms.

The Java platform has two components:

  • The Java Virtual Machine
  • The Java Application Programming Interface (API)

You‘ve already been introduced to the Java Virtual Machine; it‘s the base for(…的基础) the Java platform and is ported onto(移植到) various hardware-based platforms.

The API is a large collection of ready-made(现成的) software components that provide many useful capabilities(功能). It is grouped into(分成) libraries of related classes(相关类库) and interfaces; these libraries are known as packages. The next section, What Can Java Technology Do? highlights some of the functionality provided by the API.

The API and Java Virtual Machine insulate(隔离) the program from the underlying hardware.

As a platform-independent(独立于平台) environment, the Java platform can be a bit slower(有一点慢) than native code. However, advances(进步) in compiler and virtual machine technologies are bringing performance close to(接近于) that of native code without threatening portability(危险的移植性).

The terms"Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java platform.

时间: 2024-10-13 20:54:21

【译】About the Java Technology的相关文章

How Will Java Technology Change My Life?

How Will Java Technology Change My Life? We can't promise you fame, fortune, or even a job if you learn the Java programming language. Still, it is likely to make your programs better and requires less effort than other languages. We believe that Jav

【译】常见 Java 异常解释(恶搞版)

常见 Java 异常解释:(译者注:非技术角度分析.阅读有风险,理解需谨慎o(╯□╰)o) java.lang ArithmeticException 你正在试图使用电脑解决一个自己解决不了的数学问题,请重新阅读你的算术表达式并再次尝试. ArrayIndexOutOfBoundsException 请查看 IndexOutOfBoundsException.不同之处在于这个异常越界的元素不止一个. ArrayStoreException 你已用光了所有数组,需要从数组商店中购买更多的数组. C

1.配置EditPuls-编译和运行java程序

1.工具>配置自定义工具 2.添加工具>程序 1).编译java程序 2).运行java程序

【译】Core Java Questions and Answers【1-33】

前言 译文链接:http://www.journaldev.com/2366/core-java-interview-questions-and-answers Java 8有哪些重要的特性 Java 8发布于2014年3月,这块内容在Java面试中非常常见.如果你能清晰的回答这方面的问题,说明you are not out,喜欢学习最新的技术.Java 8是继Java 5的注解和泛型之后所做的最大的改动,主要的新特性如下: 1.接口支持静态方法和默认方法 2.函数式接口和Lambda表达式 3

[译]17-spring基于java代码的配置元数据

spring还支持基于java代码的配置元数据.不过这种方式不太常用,但是还有一些人使用.所以还是很有必要介绍一下. spring基于java代码的配置元数据,可以通过@Configuration注解把一个声明为配置类;通过@Bean注解把一个新 创建的类交由spring容器来管理.在这种配置方式下,我们可以手动装配bean,也可以自动装配bean.我感觉在这种 方式下使用手动装配非常不爽,尤其是有多个配置类的时候. 下面看个例子: 1.新建包com.tutorialspoint.javacod

Java之初印象

Java语言的跨平台性: Java语言的编程过程: 只要实现了特定平台下的解释器程序(JVM),Java字节码就能通过解释器程序在该平台下运行,这是java跨平台的根本,当前并不是在所有平台下都有相应的Java解释器程序,这也是Java并不是在所有平台下都能运行的原因,它只能在实现了Java解释器程序(JVM)的平台下运行 另: Java兼顾解释性与编译性语言的特点: JAVA源文件—>.class字节码文件 (编译型) .class文件在OS上运行的过程则是解释型的(JVM充当了解释器的作用)

Java Web services: WS-Security with Metro--referenc

As you know from "Introducing Metro," the reference implementations of the JAXB 2.x data-binding and JAX-WS 2.x Web services standards are at the core of the Metro Web services framework. But in and of themselves, JAXB and JAX-WS provide only ba

java Permissions and Security Policy--官方文档

3 Permissions and Security Policy 3.1 The Permission Classes The permission classes represent access to system resources. The java.security.Permission class is an abstract class and is subclassed, as appropriate, to represent specific accesses. As an

Java Web基础 --- Jsp 综述(下)

摘要: JSP脚本中包含九个内置对象,它们都是Servlet-API接口的实例,并且JSP规范对它们进行了默认初始化.本文首先通过一个JSP实例来认识JSP内置对象的实质,紧接着以基于请求/响应架构应用的运行机制为背景,引出JSP/Servlet的通信方式与内置对象的作用域,并对每个内置对象的常见用法进行深入介绍和总结. 一. JSP 九大内置对象概述及相关概念说明 JSP脚本中包含九个内置对象,这九个内置对象都是 Servlet API 接口的实例,并且JSP规范对它们进行了默认初始化(由 J