java基础功能介绍外文翻译(共9页).doc
《java基础功能介绍外文翻译(共9页).doc》由会员分享,可在线阅读,更多相关《java基础功能介绍外文翻译(共9页).doc(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上外文原文Java FundamentalsThe rise of the Internet and the World Wide Web have fundamentally reshaped computing. Only a few short years ago, the cyber landscape was dominated by stand-alone PCs. Today, nearly all PCs are connected to the Internet. The Internet, itself, was transformedorigina
2、lly offering a convenient way to share files and information, today it is a vast, distributed computing universe. These changes have been as rapid as they have been profound, and in their wake, they gave rise to a new way to program: Java. Java is the preeminent language of the Internet, but it is m
3、ore than that. Java has revolutionized programming, changing the way that we think about both the form and the function of a program. To be a professional programmer today implies the ability to program in Javait has become that important. In the course of this book, you will learn the skills needed
4、 to master it. The purpose of this module is to introduce you to Java, including its history, its design philosophy, and several of its most important features. By far, the hardest thing about learning a programming language is the fact that no element exists in isolation. Instead, the components of
5、 the language work in conjunction with each other. This interrelatedness is especially pronounced in Java. In fact, it is difficult to discuss one aspect of Java without involving others. To help overcome this problem, this module provides a brief overview of several Java features, including the gen
6、eral form of a Java program, some basic control structures, and operators. It does not go into too many details but, rather, concentrates on the general concepts common to any Java program.1.1 The Origins of JavaComputer language innovation is driven forward by two factors: improvements in the art o
7、f programming and changes in the computing environment. Java is no exception. Building upon the rich legacy inherited from C and C+, Java adds refinements and features that reflect the current state of the art in programming. Responding to the rise of the online environment, Java offers features tha
8、t streamline programming for a highly distributed architecture.Java was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems in 1991. This language was initially called “Oak” but was renamed “Java” in 1995. Somewhat surprisingly, the original imp
9、etus for Java was not the Internet! Instead, the primary motivation was the need for a platform-independent language that could be used to create software to be embedded in various consumer electronic devices, such as toasters, microwave ovens, and remote controls. As you can probably guess, many di
10、fferent types of CPUs are used as controllers. The trouble was that most computer languages are designed to be compiled for a specific target. For example, consider C+. Although it is possible to compile a C+ program for just about any type of CPU, to do so requires a full C+ compiler targeted for t
11、hat CPU. The problem, however, is that compilers are expensive and time-consuming to create. In an attempt to find a better solution, Gosling Java Fundamentals and others worked on a portable, cross-platform language that could produce code that would run on a variety of CPUs under differing environ
12、ments. This effort ultimately led to the creation of Java.About the time that the details of Java were being worked out, a second, and ultimately more important, factor emerged that would play a crucial role in the future of Java. This second force was, of course, the World Wide Web. Had the Web not
13、 taken shape at about the same time that Java was being implemented, Java might have remained a useful but obscure language for programming consumer electronics. However, with the emergence of the Web, Java was propelled to the forefront of computer language design, because the Web, too, demanded po
14、rtable programs.Most programmers learn early in their careers that portable programs are as elusive as they are desirable. While the quest for a way to create efficient, portable (platform-independent) programs is nearly as old as the discipline of programming itself, it had taken a back seat to oth
15、er, more pressing problems. However, with the advent of the Internet and the Web, the old problem of portability returned with a vengeance. After all, the Internet consists of a diverse, distributed universe populated with many types of computers, operating systems, and CPUs.What was once an irritat
16、ing but a low-priority problem had become a high-profile necessity.By 1993 it became obvious to members of the Java design team that the problems of portability frequently encountered when creating code for embedded controllers are also found when attempting to create code for the Internet. This rea
17、lization caused the focus of Java to switch from consumer electronics to Internet programming. So, while it was the desire for an architecture-neutral programming language that provided the initial spark, it was the Internet that ultimately led to Javas large-scale success.How Java Relates to C and
18、C+Java is directly related to both C and C+. Java inherits its syntax from C. Its object model is adapted from C+. Javas relationship with C and C+ is important for several reasons. First, many programmers are familiar with the C/C+ syntax. This makes it easy for a C/C+ programmer to learn Java and,
19、 conversely, for a Java programmer to learn C/C+. Second, Javas designers did not “reinvent the wheel.” Instead, they further refined an already highly successful programming paradigm. The modern age of programming began with C. It moved to C+, and now to Java. By inheriting and building upon that r
20、ich heritage, Java provides a powerful, logically consistent programming environment that takes the best of the past and adds new features required by the online environment. Perhaps most important, because of their similarities, C, C+, and Java define a common, conceptual framework for the professi
21、onal programmer. Programmers do not face major rifts when switching from one language to another. One of the central design philosophies of both C and C+ is that the programmer is in charge! Java also inherits this philosophy. Except for those constraints imposed by the Internet environment, Java gi
22、ves you, the programmer, full control. If you program well, your programs reflect it. If you program poorly, your programs reflect that, too. Put differently, Java is not a language with training wheels. It is a language for professional programmers. Java has one other attribute in common with C and
23、 C+: it was designed, tested, and refined by real, working programmers. It is a language grounded in the needs and experiences of the people who devised it. There is no better way to produce a top-flight professional programming language.Because of the similarities between Java and C+, especially th
24、eir support for objectoriented programming, it is tempting to think of Java as simply the “Internet version of C+.” However, to do so would be a mistake. Java has significant practical and philosophical differences. Although Java was influenced by C+, it is not an enhanced version of C+. For example
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- java 基础 功能 介绍 外文 翻译
限制150内