![java介紹外文翻譯_第1頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-7/18/851ec093-4fac-4351-8195-5b9b6486d15d/851ec093-4fac-4351-8195-5b9b6486d15d1.gif)
![java介紹外文翻譯_第2頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-7/18/851ec093-4fac-4351-8195-5b9b6486d15d/851ec093-4fac-4351-8195-5b9b6486d15d2.gif)
![java介紹外文翻譯_第3頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-7/18/851ec093-4fac-4351-8195-5b9b6486d15d/851ec093-4fac-4351-8195-5b9b6486d15d3.gif)
![java介紹外文翻譯_第4頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-7/18/851ec093-4fac-4351-8195-5b9b6486d15d/851ec093-4fac-4351-8195-5b9b6486d15d4.gif)
![java介紹外文翻譯_第5頁(yè)](http://file2.renrendoc.com/fileroot_temp3/2021-7/18/851ec093-4fac-4351-8195-5b9b6486d15d/851ec093-4fac-4351-8195-5b9b6486d15d5.gif)
版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Introduction to Javaautor: Martin Ngobye.source:Computing Static Slice for Java ProgramsJava is designed to meet the challenges of application development in the context of heterogeneous, network-wide distributed environments. Paramount among these challenges is secure delivery of applications that
2、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 advanced software for a wide variety of network devices and embedded systems. The goal was to develop a small, reliable, po
3、rtable, 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 the problems could best be addressed by creating an entirely new language platform. Design and architecture decisions
4、 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, network based end-user applications in environments ranging from network-embedded devices to the World-Wide Web and th
5、e 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-Wide Web leads us to a completely new way of looking at development and distribution of software. To live in the world
6、of electronic commerce and distribution, Java must enable the development of secure, high performance, and highly robust applications on multiple platforms in heterogeneous, distributed networks.Operating on multiple platforms in heterogeneous networks invalidates the traditional schemes of binary d
7、istribution, 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 meet these needs is simple, so it can be easily programmed by most developers; familiar, so that current developers can e
8、asily learn Java; object oriented, to take advantage of modern software development methodologies and to fit into distributed client-server applications; multithreaded, for high performance in applications that need to perform multiple concurrent activities, such as multimedia; and interpreted, for
9、maximum portability and dynamic capabilities.Together, the above requirements comprise quite a collection of buzzwords, so let examine some of them and their respective benefits before going on.What' s completely new is the manner in which Java and its r-utinme system have combined them to produ
10、ce a flexible and powerful programming system.Developing your applications using Java results in software that is portable across multiple machine architectures, operating systems, and graphical user interfaces, secure, and high performance, With Java, your job as a software developer is much easier
11、you 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 you by the Java language platform.Very dynamic languages like Lisp, TCL, and SmallTalk are often used for prototyp
12、ing. One of the reasons for their success at this is that they are very robustyou don ' t have to worry about freeing or corrupting memory.Similarly, programmers can be relatively fearless about dealing with memory when programming in Java, The garbage ocllection system makes the programmer'
13、s job vastly easier;with the burden of memory management taken off the programmer' s shoulders, storageallocation errors go away. Another reason commonly given that languages like Lisp, TCL, and SmallTalk are good for prototyping is that they don' t require you to pin down decisions earlyont
14、hese 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 assistance you can write method invocations and, if you get something wrong, you get told about it at compile time. You don' t have to worry
15、 about meinvocation error.The Java beginner must grasp 30 basic conceptsBasic concept1.In OOP the only relations is what the objec't s interface, such as the computer seller he leaves alone internal structure of electrical source, but he is only concerned about that whether the power will be sup
16、plied 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, between the object all intercommunion are invoke through the method invocation, By object
17、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. Encapsulation: is that combines the data and the behavior in a package) and hides
18、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 super root class of expansion, super root class of as follows can make the introdu
19、ction.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 object has only indentity and among three characteristics they affect mutually.6.
20、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 method(Individuality exists in general character) 7.Structure object use structure:Str
21、ucture 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 happyday=new Data () - an object evaluates an variable happyday, thus enables this
22、 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 parametersThe constructor and the class have the same nameA class may have many constructor.
23、The constructor has not returned valueThe 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 loading Which method does the compiler have to choose invokes.9. Package : Java allow one
24、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 all java packages are in java and in a javax package.10. Extendable thought: permit t
25、o 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 class.11. Expandable class:The expandable class fully manifested is-a to extend the r
26、elations 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 object method mechanism.1) compiler examines object statement type and method name
27、.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 and uses dynamic combine to invoke a method, the method edition which then hypothesized m
28、achine 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 saved the code.14. Final class:In order to prevent other people derive the new class fro
29、m 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 abstract.Example: Public abstract string getDescripition17.In Java each class is be e
30、xtended 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 class can nearly over loading this method, in order to returns to the current condition
31、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 dynamic array tabulates, is a class of storehouse, defines in java.In uitl package, but a
32、utomatic 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 increase all classes which he needs, each increase class all must increase the class w
33、hich 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 reflected Java to be able to support the VB programmer to be familiar with the use the tool
34、.1) when run analysis class ability.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
35、permits class that you inspect structure. With to API includes:Method pointer: Java does not have the method pointer, makes a method address another method, may invoke it in behind, but the interface is the better solution.23. interface: should showing class could do what but not to assign how to do
36、, 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 statement class needs to realize assigns the interface.2) provides in the interface all methods definition.
37、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, cannot use a new example interface.25. A class only then a super class, but a class can realize many inter
38、faces. 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 specific time occurs returns to adjusts on the object the method.Example:ActionListener interface monitor.
39、Similar API includes:27.Object clone:The clone method is a object protection method, this meant your code cannot simple invoke it.28.Inner class 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 priv
40、ate 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 definition accent. In 4) uses the category to be possible the extremely convenient compilation event driver.29.Agent class (proxy):1) appointing all codes that i
41、nterfaces request2) all methods (toString equals) that object class define30.Data type:Java is kind of emphasizing type language, each variable 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 use
42、d in the Unicode code char, Boolean.1. java is simpleJava and C + + are very similar, but much simpler. All the high-level programming language features, is not absolutely necessary have been deletedF. or example, Java does not overload operator, the title of the document, pre-processing, computing
43、pointer, the structure of the joint, multi-dimensional array, templates and implicit type conversion. If you know a little C, C + + or Pascal, you will soon master Java. Here is a simple procedure JavaHelloWorld: publicclassHelloInternet ( publicstaticvoidmain (Stringargv ) (System. out. println ( &
44、quot;HelloIn-ternet!")2. Java is object-orientedJava is an object-oriented programming language. In addition to the simple types, such as digital and Boolean operators in addition, Java is an object of most. As with any object-oriented languages, Java code also organized by category.Each catego
45、ry 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 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
46、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 met
47、hods, and do not have to rush immediately to determine the methods to achieve. A type of interface can be a number of purposes in order to truly multi-inheritance of a number of advantages. The implementation of an object can be any number of interfaces. IDL interface and Java interface very similar
48、. Very easy to set up IDLJ compiler. In other words, Java can be used to create a CORBA object system distributed object system. In the view of many computer systems use IDL interface and CORBA objects, such compatibility is important.3. Java is a type of staticIn a Java program, it is essential to
49、the definition used by the target (number of characters, such as an array) type. This will help programmers quickly found because the procedure when the compiler can detect the type of error. However, Java System objects are also dynamic types. A requirement for the type of dynamic is often possible
50、, so programmers can write the procedures for different types of objects to do different things.4. Is a Java-based compilerWhen running Java programs, which were first compiled into byte code. Byte code is very similar to the machine instructions, so Java program is very efficient. However, the byte
51、 code does not specifically for a particular machine, so no need to recompile Java program can be in many different computer implementation. Java source code files were compiled into a category, which is equivalent to process byte code performance. In a Java class file, and an example for all of the
52、 variables are in the light of, and for the first time in the implementation of the code be resolved. This makes the code more common and more easily subject to revision, but still high.5. Java is architecture neutralJava language is the same for each computer.For example, simple types are the same:
53、 32-bit integer always, always 64-bit long integers. It is strange, such as C and C + + programming language, and so fashionable it is not the case.As a result of these languages so the definition of freedom, each of the compiler and development environment will be different, so that this process nu
54、isance become a transplant.Java programs can easily gain access to transplants, and there is no need to re-compile.6. Java is a soundJava program can not be caused by the collapse of the computer.Java careful testing of the system memory of each visit, make sure it is legitimate and will not cause a
55、ny problems. However, even if the Java program may also be wrong. If there is some kind of unexpected things, the process will not collapse, and to abandon the exception. Procedures for such an exception would be found to address them. Traditional computer programs can access the full memory. May (u
56、nconsciously) to amend any of the value of memory, which will cause problems. Java program can only access memory to allow them access to those parts of the Java program can not modify it does not seek to change the value.7. Java is a compactAs the Java is designed to run on a small computer, as a p
57、rogramming language for the system is relatively small. It effectively in more than 4MB of RAM to run on PC machine. Java translator occupied by only a few hundred KB. This translator for the Java platform independence and portability is reliable. Due to Java is very small, it is a very small comput
58、er memory, such as the Java-based PC, as well as television sets, ovens, telephone and home computer, and so on, it is ideal.8. Java is a multi-threadedJava program can run more than one thread. For example, it can be a thread in a time-consuming to complete the calculation, and other users to inter
59、act with the threads of dialogue. Therefore, users do not have to stop working, waiting for the Java computing time-consuming process. In the multi-threaded programming environment, it is often difficult because many things may occur at the same time.However, Java provides easy-to-use features simultaneously, so that the programming easier
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年裝卸機(jī)械項(xiàng)目立項(xiàng)申請(qǐng)報(bào)告模式
- 2025年上海高級(jí)商場(chǎng)物業(yè)管理續(xù)簽合同協(xié)議
- 2025年膠片型相機(jī)、CCD相機(jī)、紅外相機(jī)、恒星相機(jī)項(xiàng)目規(guī)劃申請(qǐng)報(bào)告模板
- 2025年勞動(dòng)合同法續(xù)約條件規(guī)定
- 優(yōu)化農(nóng)業(yè)產(chǎn)業(yè)供應(yīng)鏈的合同范例2025年
- 2025年設(shè)備租賃展示合同范本
- 2025年公共交通廣告安裝服務(wù)協(xié)議
- 2025年上海技術(shù)顧問(wèn)合同
- 2025年建筑項(xiàng)目材料采購(gòu)申請(qǐng)及供銷(xiāo)協(xié)議
- 2025年二手房產(chǎn)交易定金給付合同協(xié)議樣本
- 2024年中儲(chǔ)糧油脂有限公司招聘考試真題
- 新版人教版七年級(jí)下冊(cè)數(shù)學(xué)全冊(cè)教案教學(xué)設(shè)計(jì)含教學(xué)反思
- 2024公共數(shù)據(jù)授權(quán)運(yùn)營(yíng)實(shí)施方案
- 特種設(shè)備安全監(jiān)察指令書(shū)填寫(xiě)規(guī)范(特種設(shè)備安全法)參考范本
- 航空維修工程管理-第1章課件
- 《長(zhǎng)方形的面積》-完整版課件
- 五年級(jí)上冊(cè)英語(yǔ)Module6Unit1Youcanplaybasketballwell外研社課件
- 工業(yè)企業(yè)現(xiàn)場(chǎng)監(jiān)測(cè)工況核查表
- 沉淀池及排水溝清理記錄表
- 玩具公司職位說(shuō)明書(shū)匯編
- ic半導(dǎo)體測(cè)試基礎(chǔ)(中文版)參考范本
評(píng)論
0/150
提交評(píng)論