Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 385 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
385
Dung lượng
2,25 MB
Nội dung
[...]... blank ApDev TIGHT / TheArtofJava / Schildt/Holmes / 222971-3 / CHAPTER 1 The Genius ofJava By Herb Schildt and James Holmes 1 Color profile: Generic CMYK printer profile Composite Default screen 2 ApDev TIGHT / TheArtofJava / Schildt/Holmes / 222971-3 / Chapter 1 TheArtofJava H istory in the large view is mirrored on a smaller scale by the history of programming Just as the first societies... profile: Generic CMYK printer profile Composite Default screen AppDev TIGHT / TheArtOfJava / Schildt/Holmes / 222971-3 / Chapter 1 AppDev TIGHT / TheArtof Chapter 1: The Genius ofJava contained a set of core packages, such as java. lang, java. io, and java. net With each new release of Java, classes and packages have been added Today, Java gives the programmer access to a truly amazing array of. .. “to write once, run anywhere.” The second advantage achieved by bytecode is security Because execution ofthe bytecode is under the control ofthe JVM, the JVM can prevent a Java program from performing malicious acts that affect the host machine The ability to ensure the security ofthe host computer was crucial to the success ofJava because it enabled the creation ofthe applet Because an applet is... easy-to-use, built-in part ofthe language, Java changed the way that we thought about the fundamental architecture of a program Before Java, most P:\010Comp\ApDev\971-3\ch01.vp Monday, July 07, 2003 10:02:28 AM Color profile: Generic CMYK printer profile Composite Default screen AppDev TIGHT / The Artof Java / Schildt/Holmes / 222971-3 / Chapter 1 Chapter 1: The Genius ofJava programmers conceptualized... July 08, 2003 9:09:08 AM Color profile: Generic CMYK printer profile Composite Default screen ApDev TIGHT / The Artof Java / Schildt/Holmes / 222971-3 / Front Matter Preface More From Herb Schildt TheArtofJava is just one in a series of Herb Schildt programming books Here are some others that you will find of interest To learn more about Java programming, we recommend the following: Java 2: The Complete... Throughout this book we will demonstrate the wide-ranging capabilities ofJava by applying it to a varied cross section of applications Some ofthe applications demonstrate the power ofthe language, independent of its networking attributes We call these “pure code” examples because they show the expressiveness oftheJava syntax and design philosophy Others illustrate the ease with which sophisticated networked... version of a program for all environments TheJava applet provided a solution to both problems With the applet, the Web P:\010Comp\ApDev\971-3\ch01.vp Monday, July 07, 2003 10:02:29 AM 7 Color profile: Generic CMYK printer profile Composite Default screen 8 ApDev TIGHT / The Artof Java / Schildt/Holmes / 222971-3 / Chapter 1 TheArtofJava programmer was able to easily add dynamic content to the rather... using theJava language and its API classes Collectively, the applications show the power and scope ofJava Before we begin our exploration of Java, we will take some time in this first chapter to point out several ofthe features that make it a remarkable programming language These are features that reflect what we call the “genius of Java. ” Simple Types and Objects: The Right Balance One ofthe greatest... it can But the problem only gets worse when you add parentheses, exponentiation, variables, unary operators, and the like P:\010Comp\ApDev\971-3\ch02.vp Monday, July 07, 2003 10:02:47 AM 11 Color profile: Generic CMYK printer profile Composite Default screen 12 ApDev TIGHT / The Artof Java / Schildt/Holmes / 222971-3 / Chapter 2 The Artof Java Although there are a number of ways to write the code that... by which these new ideas could be rapidly assimilated Whereas many other computer languages change slowly, Java is constantly evolving and adapting Furthermore, this process is open to the entire Java community through theJava Community Process (JCP) The JCP offers a mechanism by which users ofJava help influence the future direction ofthe language, tools, and associated technologies Thus, the people . fundamental architecture of a program. Before Java, most 4 The Art of Java ApDev TIGHT / The Art of Java / Schildt/Holmes / 222971-3 / Chapter 1ApDev TIGHT / The Art Of Java / Schildt/Holmes /. type dilemma. Here is the problem. From a conceptually ApDev TIGHT / The Art of Java / Schildt/Holmes / 222971-3 / Chapter 1 2 The Art of Java ApDev TIGHT / The Art of Java / Schildt/Holmes /. Some of the applications demonstrate the power of the language, independent of its networking attributes. We call these “pure code” examples because they show the expressiveness of the Java syntax