选择显示字体大小

java虚拟机详述-第一章

introduction


--------------------------------------------------------------------------------

1.1 a bit of history
the java programming language is a general-purpose object-oriented concurrent language. its syntax is similar to c and c++, but it omits many of the features that make c and c++ complex, confusing, and unsafe. the java platform was initially developed to address the problems of building software for.networked consumer devices. it was designed to support multiple host architectures and to allow secure delivery of software components. to meet these requirements, compiled code had to survive transport across.networks, operate on any client, and assure the client that it was safe to run.
the popularization of the world wide web made these attributes much more interesting. the inte.net demonstrated how media-rich content could be made accessible in simple ways. web browsers such as mosaic enabled millions of people to roam the.net and made web surfing part of popular culture. at last there was a medium where what you saw and heard was essentially the same whether you were using a mac, pc, or unix machine, and whether you were connected to a high-speed.network or a slow modem.

web enthusiasts soon discovered that the content supported by the web's html document format was too limited. html extensions, such as forms, only highlighted those limitations, while making it clear that no browser could include all the features users wanted. extensibility was the answer.

sun's hotjava browser showcases the interesting properties of the java programming language and platform by making it possible to embed programs inside html pages. these programs are transparently downloaded into the hotjava browser along with the html pages in which they appear. before being accepted by the browser, the programs are carefully checked to make sure they are safe. like html pages, compiled programs are.network- and host-independent. the programs behave the same way regardless of where they come from or what kind of machine they are being loaded into and run on.

a web browser incorporating the java or java 2 platform is no longer limited to a predetermined set of capabilities. visitors to web pages incorporating dynamic content can be assured that their machines cannot be damaged by that content. programmers can write a program once, and it will run on any machine supplying a java or java 2 runtime environment.



--------------------------------------------------------------------------------

1.2 the java virtual machine
the java virtual machine is the cornerstone of the java and java 2 platforms. it is the component of the technology responsible for its hardware- and operating system- independence, the small size of its compiled code, and its ability to protect users from malicious programs.
the java virtual machine is an abstract computing machine. like a real computing machine, it has an instruction set and manipulates various memory areas at run time. it is reasonably common to implement a programming language using a virtual machine; the best-known virtual machine may be the p-code machine of ucsd pascal.

the first prototype implementation of the java virtual machine, done at sun microsystems, inc., emulated the java virtual machine instruction set in software hosted by a handheld device that resembled a contemporary personal digital assistant (pda). sun's current java virtual machine implementations, components of its javatm 2 sdk and javatm 2 runtime environment products, emulate the java virtual machine on win32 and solaris hosts in much more sophisticated ways. however, the java virtual machine does not assume any particular implementation technology, host hardware, or host operating system. it is not inherently interpreted, but can just as well be implemented by compiling its instruction set to that of a silicon cpu. it may also be implemented in microcode or directly in silicon.

the java virtual machine knows nothing of the java programming language, only of a particular binary format, the class file format. a class file contains java virtual machine instructions (or bytecodes) and a symbol table, as well as other ancillary information.

for the sake of security, the java virtual machine imposes strong format and structural constraints on the code in a class file. however, any language with functionality that can be expressed in terms of a valid class file can be hosted by the java virtual machine. attracted by a generally available, machine-independent platform, implementors of other languages are turning to the java virtual machine as a delivery vehicle for their languages.



--------------------------------------------------------------------------------

1.3 summary of chapters
the rest of this book is structured as follows:

chapter 2 gives an overview of java programming language concepts and terminology necessary for the rest of the book.

chapter 3 gives an overview of the java virtual machine architecture.

chapter 4 specifies the class file format, the hardware- and operating system-independent binary format used to represent compiled classes and interfaces.

chapter 5 specifies the start-up of the java virtual machine and the loading, linking, and initialization of classes and interfaces.

chapter 6 specifies the instruction set of the java virtual machine, presenting the instructions in alphabetical order of opcode mnemonics.

chapter 7 introduces compilation of code written in the java programming language into the instruction set of the java virtual machine.

chapter 8 describes java virtual machine threads and their interaction with memory.

chapter 9 gives a table of java virtual machine opcode mnemonics indexed by opcode value.

--------------------------------------------------------------------------------

1.4 notation
throughout this book we refer to classes and interfaces drawn from the java and java 2 platforms. whenever we refer to a class or interface using a single identifier n, the intended reference is to the class or interface java.lang.n. we use the fully qualified name for classes from packages other than java.lang.
whenever we refer to a class or interface that is declared in the package java or any of its subpackages, the intended reference is to that class or interface as loaded by the bootstrap class loader (§5.3.1). whenever we refer to a subpackage of a package named java, the intended reference is to that subpackage as determined by the bootstrap class loader.

the use of fonts in this book is as follows:


a fixed width font is used for code examples written in the java programming language, java virtual machine data types, exceptions, and errors.

italic is used for java virtual machine "assembly language," its opcodes and operands, as well as items in the java virtual machine's runtime data areas. it is also used to introduce new terms and simply for emphasis.


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons