赵帮辉中英文翻译(7)
Runtime (Runtime) term perspective emphasizes the dynamic process of the dynamic changes when the program is running, but also with the expression of the runtime environment similar to the meaning of the word.
Java technology is a lot of work done at run time, such as strengthening security code verification operations.
In general, Java technology runtime environment performs the following three major tasks: ? loading code - the implementation by the class loader
Class loader for the implementation of the procedures required to load all classes (as far as possible and not necessarily the same).
? validation code - the implementation of the byte code verifier
Java code before the actual operation after several tests. Byte code verifier for four times on the validation code, which can ensure code compliance and does not destroy the JVM specification system integrity. If - Check forged pointers, object access rights violation or attempt to change the object type of illegal code.
? code execution - from the implementation of the runtime interpreter ? Automatic garbage collection
Many programming languages allow programs running in the memory block dynamically allocated, the process of allocating memory blocks because of the language syntax varies, but always point to the store to return to the starting position of the pointer. In C, C + + and other languages, the programmer is responsible for deallocation of memory blocks. Sometimes this is a very difficult task. Because programmers do not always know in advance when a block of memory should be released. When not in the system can be allocated memory block, it can cause the program to a standstill, this procedure is called a memory leak.
When the allocated memory block is no longer needed, the program should be canceled or the operating environment to allocate memory block.
? garbage collection is no longer needed recovery of allocated memory block.
? in other languages in general, is the programmer's responsibility to cancel the allocation.
? Java programming language provides a system-level threads to keep track of memory allocation, to complete the garbage collection:
? no longer need to check and release the memory block ? the above work can be completed automatically
? in the JVM implementation cycle, resulting in unexpected changes ? good robustness of the code
Java program to check at compile and run-time errors. Type of examination can help detect many errors early in development. Meanwhile, many integrated development tools (IDE) to compile and run the emergence of Java programs easier and a lot of integrated development tools (eg Eclipse) are free.
1.3 Object-oriented and process-oriented differences
The production of a programming language, programming is not only a technical improvement, but also includes the expression of ideas and cognitive progress.
The C language as the representative of the early part of the language, known as process-oriented language, not only because of their expression of program design is based on the basic elements of the process, in essence, is now more understanding of the computerized system the dominant ideology or control flow or data flow, constitute elements of the system is the module - processing logic.
The generation of object-oriented languages, because the understanding of the system or the abstract to a more advanced level. Cognitive thinking at this time not only closer to the real world, and its high degree of abstraction. Thus, both easy to understand on the one hand, there are also difficult to understand the other hand, to see the realm of understanding.
1.3.1 Review process-oriented thinking
Process-oriented programming language, thought and expression, can be simply summarized as the following few:
Understanding of the system structure analysis of the process - top-down, stepwise refinement to the functional decomposition;
Each function is a data processing module, which fully describe the IPO described the internal and external features of the module;
Each module is control flow, and therefore have a typical structure of the three procedures - sequence, branch, loop;
The relationship between the module by calling the preserve, which has become a function module, which is the most important process-oriented way of code reuse under way;
Although the function call parameters and return values, but the data and functions are always separate, not only with the famous assertion - program = algorithm + data, but also makes the absolute equality of the disorder have trouble - all the functions and data relationship is no limit;
If you want to use the data flow, then the data can only be produced in an appropriate time after the call function.
The main drawback of this period are: understanding the system more difficult, the systematic development of low efficiency, code reusability is poor.
…… 此处隐藏:2881字,全部文档内容请下载后查看。喜欢就下载吧 ……相关推荐:
- [基础教育]2016-2022年中国钢芯铝绞线市场现状调
- [基础教育]语文部编版初一语文下册练习题 句式变
- [基础教育]南京继续教育参考答案--深入学习贯彻习
- [基础教育]国旗下讲话稿——珍惜时间好读书
- [基础教育]北师大版六年级数学下册圆锥的体积教学
- [基础教育]人教版-音乐-四年级下册-四年级下册音
- [基础教育]乔布斯2019年斯坦福大学毕业典礼致辞.d
- [基础教育]2015年加油站安全知识竞赛试题及答案
- [基础教育]2020年教师年度考核个人工作总结
- [基础教育]2019年中考历史试题-2019年大庆市初中
- [基础教育]初三仁爱英语第一轮总复习教案
- [基础教育]SG-A094电气配管安装工程隐蔽验收记录
- [基础教育]冀教版小学数学三年级下册第六单元教材
- [基础教育]青岛版(五制)小学科学二年级下册16《制
- [基础教育]2018-2019年初中科学初一中考真卷测试
- [基础教育]幼儿园大班期末简短评语精选
- [基础教育]2018云南临沧公务员考试申论技巧:这样
- [基础教育]学校食堂经营管理方案
- [基础教育]新中国砥砺奋进的七十年原文
- [基础教育]真空泵的选型及常用计算公式
- 高职田径课程教学现状与对策
- 全髋关节置换术在老年股骨颈骨折患者中
- 青人社厅函〔2016〕576号(附件)工资
- cp101-07砂子检验作业指导书 - secret
- 微观经济学 第八章 博弈论 习题
- 2014高考真题(词语运用)汇编及答案
- 2018年人教版七年级语文下册《第三单元
- 苏教版数学四年级上册第一单元试题 - M
- 四川大学新闻与传播考研2000-2010年真
- 浙江万里学院英语专业四年制本科教学计
- 最新2018马年事业祝福语-范文word版(2
- 最全模具行业术语英文翻译
- 皮亚杰的发展心理学理论
- 64篇高考情景式默写 练习题及答案
- 仿写(学生稿)
- 《SQL Server数据库技术》试卷A
- 第七章作业答案
- 江苏省赣榆县海头高级中学高中语文必修
- 浙江省2001年10月自考正常人体解剖学答
- 2012英语重点短语




