《计算机专业英语JAVA介绍外文翻译(共28页).doc》由会员分享,可在线阅读,更多相关《计算机专业英语JAVA介绍外文翻译(共28页).doc(28页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上荆楚理工学院学生课程考核论文学 院: 计算机工程学院 专 业: 软件技术 班 级: 软件技术(1)班 课 程: 专业英语 论文题目: JAVA介绍 学生姓名: 王选 时 间: 2012年12月2日 成绩评定: Introduction to Java autor:Martin Ngobye.source:Computing Static Slice for Java ProgramsJava is designed to meet the challenges of application development in the context of heterogen
2、eous, network-wide distributed environments. Paramount among these challenges is secure delivery of applications that consume the minimum of system resources, can run on any hardware and software platform, and can be extended dynamically.Java originated as part of a research project to develop advan
3、ced software for a wide variety of network devices and embedded systems. The goal was to develop a small, reliable, portable, distributed, real-time operating platform. When the project started, C+ was the language of choice. But over time the difficulties encountered with C+ grew to the point where
4、 the problems could best be addressed by creating an entirely new language platform. Design and architecture decisions drew from a variety of languages such as Eiffel, SmallTalk, Objective C, and Cedar/Mesa. The result is a language platform that has proven ideal for developing secure, distributed,
5、network based end-user applications in environments ranging from network-embedded devices to the World-Wide Web and the desktop.The design requirements of Java are driven by the nature of the computing environments in which software must be deployed.The massive growth of the Internet and the World-W
6、ide Web leads us to a completely new way of looking at development and distribution of software. To live in the world of electronic commerce and distribution, Java must enable the development of secure, high performance, and highly robust applications on multiple platforms in heterogeneous, distribu
7、ted networks.Operating on multiple platforms in heterogeneous networks invalidates the traditional schemes of binary distribution, release, upgrade, patch, and so on. To survive in this jungle, Java must be architecture neutral, portable, and dynamically adaptable.The Java system that emerged to mee
8、t these needs is simple, so it can be easily programmed by most developers; familiar, so that current developers can easily learn Java; object oriented, to take advantage of modern software development methodologies and to fit into distributed client-server applications; multithreaded, for high perf
9、ormance in applications that need to perform multiple concurrent activities, such as multimedia; and interpreted, for maximum portability and dynamic capabilities.Together, the above requirements comprise quite a collection of buzzwords, so lets examine some of them and their respective benefits bef
10、ore going on.Whats completely new is the manner in which Java and its run-time system have combined them to produce a flexible and powerful programming system.Developing your applications using Java results in software that is portable across multiple machine architectures, operating systems, and gr
11、aphical user interfaces, secure, and high performance, With Java, your job as a software developer is much easieryou focus your full attention on the end goal of shipping innovative products on time, based on the solid foundation of Java. The better way to develop software is here, now, brought to y
12、ou by the Java language platform.Very dynamic languages like Lisp, TCL, and SmallTalk are often used for prototyping. One of the reasons for their success at this is that they are very robustyou dont have to worry about freeing or corrupting memory.Similarly, programmers can be relatively fearless a
13、bout dealing with memory when programming in Java, The garbage collection system makes the programmers job vastly easier; with the burden of memory management taken off the programmers shoulders, storage allocation errors go away. Another reason commonly given that languages like Lisp, TCL, and Smal
14、lTalk are good for prototyping is that they dont require you to pin down decisions early onthese languages are semantically rich.Java has exactly the opposite property: it forces you to make explicit choices. Along with these choices come a lot of assistanceyou can write method invocations and, if y
15、ou get something wrong, you get told about it at compile time. You dont have to worry about method invocation error.The Java beginner must grasp 30 basic conceptsBasic concept1.In OOP the only relations is what the objects interface, such as the computer seller he leaves alone internal structure of
16、electrical source, but he is only concerned about that whether the power will be supplied to you, also so long as know can or not but is not how and why.All procedures are make up of certain attribute and the behavior object, the different object visit invokes through the function invocation, betwee
17、n the object all intercommunion are invoke through the method invocation, By object data encapsulation, enhances reuse rate very much.2.In OOP the most important thought is class, the class is the template ,is a blueprint, construct an object from a class, namely construct an instance of the class.3
18、. Encapsulation: is that combines the data and the behavior in a package) and hides the data the realization process to the object user, in an object data is called its instance field.4.Through expands a class to obtain a new class is called inheritance, but all classes are constructed by the object
19、 super root class of expansion, super root class of as follows can make the introduction.5.Object 3 principal characteristicsBehavior- explained this object can make what.Tate- when the object exerts the method object reflection.Dentity- and other similar behavior objects discrimination symbols.Each
20、 object has only indentity and among three characteristics they affect mutually.6. Relations among classes:Use-a:Dependent relationHas-a:Polymerization relationIs-a: inheritor relation - example:A class has inherited B class, this time A class not only has B class of method, but also has its own met
21、hod(Individuality exists in general character)7.Structure object use structure:Structure proposing, the structure is one special method, the structure object and to its initialization.Example:A Data class of structure calls DataNew Data () - structure a new object, also initialize current time.Data
22、happyday=new Data () - an object evaluates an variable happyday, thus enables this object to be used many times, here be stated the cause variable and the object variable are different.New returns the value is a quotation.Constructor characteristic:The constructor may have 0, one or many parametersT
23、he constructor and the class have the same name A class may have many constructor. The constructor has not returned value The constructor always be together used with the new operator8. Over loading: When many methods have the same name when includes the different parameter, then has the over loadin
24、g Which method does the compiler have to choose invokes.9.Package : Java allow one or many classes to become together as group, is called package, to organizing duty easily, the standard Java storehouse divides into many packages Java.Lang java.Util java, net and so on, the package is layered and al
25、l java packages are in java and in a javax package.10. Extendable thought: permit to construct new class on existing classes , when you extend the class which already existed, then you reuse this class of method and the field, at the same time you might add the new method and the field in the new cl
26、ass. 11.Expandable class:The expandable class fully manifested is-a to extend the relations The form is:Class (subclass) extends (base class).12. Multi-modality: In java, the object variable is multi-modality But in java does not support multiple extend. 13.Dynamic combine: the mechanism of invoking
27、 object method mechanism. 1) compiler examines object statement type and method name. 2) the compiler examines that method invokes parameter type. 3) static combine: If the method type is priavte static the final ,compiler can accurately know which method should invoke. 4) when the procedure runs an
28、d uses dynamic combine to invoke a method, the method edition which then hypothesized machine must invoke x the object actual type which aims at to match. 5) dynamic combine: is a very important characteristic, it can cause the procedure to change again may expand but does not need to translate has
29、saved the code. 14.Final class:In order to prevent other people derive the new class from yours class, this class is cannot expanded.15.The dynamic invocation spend longer time than the static invocation expenditure.16.Abstract class:Stipulated or many abstract methods class of itself must define is
30、 abstract.Example: Public abstract string getDescripition17.In Java each class is be extended by object class.18. equal and toString method in object class .Equal uses in testing an object is whether equal with another object.ToString returns to represent this object the string of character, each cl
31、ass can nearly over loading this method, in order to returns to the current condition the correct expression.(The toString method is a very important method)19.General programming:Any class of type all values all may replace with a object class of variable. 20.The array tabulates: The ArrayList dyna
32、mic array tabulates, is a class of storehouse, defines in java.In uitl package, but automatic control array size. 21.in class and class of object ,getclass method returns to the class type an example, when the procedure start contains can increase in the main method class, hypothesized confidential
33、increase all classes which he needs, each increase class all must increase the class which it needs.22.The class: class might dynamic operate the java code for the compilation the procedure to provide the formidable function reflection, this function was JavaBeans is specially useful, the use reflec
34、ted Java to be able to support the VB programmer to be familiar with the use the tool.procedure of analysis class ability is called the reflector, in Java to provide this function the package to call Java.Lang.The reflect reflection mechanism is extremely formidable.1) when run analysis class abilit
35、y.2) when run searches observes a class of object.3) realizes the general array operation code.4) provides the method object.But this mechanism mainly aims at the tool but not the application and the procedure.In the reflection mechanism most important part is that permits class that you inspect str
36、ucture. With to API includes:Java.Lang.Reflect.Field returns to the field.Java.Reflect.Method returns to the method.Java.Lang.Reflect.Constructor returns to the parameter.Method pointer: Java does not have the method pointer, makes a method address another method, may invoke it in behind, but the in
37、terface is the better solution.23. interface: should showing class could do what but not to assign how to do, a class may realize one or many interfaces.24.The interface is not a class, but is to conforms to a interface request class of set of standard.If realizes a interface to need 2 steps:1) the
38、statement class needs to realize assigns the interface.2) provides in the interface all methods definition.Stated a class realizes a interface to need to use the implements key wordsClass actionB implements Comparable its actionb needs to provide the CompareTo method, the interface is not the class,
39、 cannot use a new example interface.25.A class only then a super class, but a class can realize many interfaces. In a Java important interface: Cloneable26.The interface and call-back :to programs a commonly used pattern is call-back,in the pattern, you may refer when this class of pattern settled s
40、pecific time occurs returns to adjusts on the object the method.Example:ActionListener interface monitor.Similar API includes:Java.Swing.JOptionPaneJava.Swing.TimerJava.Awt.Tookit27.Object clone:The clone method is a object protection method, this meant your code cannot simple invoke it.28.Inner cla
41、ss an inner class definition is the definition in another class.The reason is: 1) an inner class object can visit founds its object realization, including private data.2) about other classes in the same package in that, inner class can be hided.3) the anonymous inner class may the very convenient de
42、finition accent.In 4) uses the category to be possible the extremely convenient compilation event driver.29.Agent class (proxy):1) appointing all codes that interfaces request2) all methods (toString equals) that object class define30.Data type:Java is kind of emphasizing type language, each variabl
43、e all must be declared its types at first, in java altogether has 8 basic types . four kinds are the long, two kinds are the float, one is the char, being used in the Unicode code char, Boolean. 1. java is simple Java and C + + are very similar, but much simpler. All the high-level programming langu
44、age features, is not absolutely necessary have been deleted. For example, Java does not overload operator, the title of the document, pre-processing, computing pointer, the structure of the joint, multi-dimensional array, templates and implicit type conversion. If you know a little C, C + + or Pasca
45、l, you will soon master Java. Here is a simple procedure JavaHelloWorld: publicclassHelloInternet ( publicstaticvoidmain (Stringargv ) ( System. out. println ( HelloIn-ternet!) ) ) 2. Java is object-oriented Java is an object-oriented programming language. In addition to the simple types, such as di
46、gital and Boolean operators in addition, Java is an object of most. As with any object-oriented languages, Java code also organized by category. Each category provides a definition of the object behavior. Another type of succession can be a kind of behavior. In the category of the root level, often
47、the target category. Java support for the single type of inherited hierarchy. This means that each category can only inherit one other category. Some of the language to allow multiple inheritance, but it may cause confusion and unnecessarily complicated language. For example, imagine that an object would inherit two completely different category. Java also supports the kind of summary of the interface. This allows programmers to define the interface methods, and do not have to rush immediately to determine the methods to achieve