色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁技術文章
文章詳情頁

java虛擬機詳述-第一章

瀏覽:71日期:2024-06-07 08:14:33
內容: Introduction --------------------------------------------------------------------------------1.1 A Bit of HistoryThe 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 Internet 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 MachineThe 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 ChaptersThe 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 NotationThroughout 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, java, J2SE, j2se, J2EE, j2ee, J2ME, j2me, ejb, ejb3, JBOSS, jboss, spring, hibernate, jdo, struts, webwork, ajax, AJAX, mysql, MySQL, Oracle, Weblogic, Websphere, scjp, scjd Introdu
標簽: Java
相關文章:
主站蜘蛛池模板: 国产成人香蕉久久久久 | 久久中文字幕亚洲精品最新 | 亚洲一区二区中文字幕 | 欧美日韩一区二区中文字幕视频 | 99久久99热久久精品免费看 | 动漫精品一区二区 | 最新69成人精品毛片 | 91久久综合九色综合欧美98 | 极品色在线精品视频 | 日韩欧美国产一区二区三区 | 一区二区三区视频免费观看 | 九九99re在线视频精品免费 | 久久久精品久久久久三级 | 亚洲成年www| 国内一区二区 | 久久爰www免费人成 久久曰视频 | 欧美日韩国产一区二区三区在线观看 | 亚洲美女免费视频 | 香蕉视频老司机 | 永久免费不卡在线观看黄网站 | 国产综合精品久久亚洲 | 中文字幕在线观看亚洲日韩 | 天码毛片一区二区三区入口 | 国产韩国精品一区二区三区久久 | 久久免视频 | 一区二区三区视频在线观看 | 久久久久亚洲精品中文字幕 | 五月六月伊人狠狠丁香网 | 韩国午夜三级理论 | 国产精品久久久久影视不卡 | 国产一级性生活 | 国产美女一区精品福利视频 | 亚洲美女精品视频 | 91久久精品国产91性色tv | 热99re久久精品2久久久 | 福利91 | 黄色视屏免费 | 精品视频一区二区三区在线观看 | 久久精品国产在爱久久 | 欧美一级日韩在线观看 | 欧美成人26uuu欧美毛片 |