论文部分内容阅读
Java语言主要有以下几个特征: 1、面向对象 Java的一个重要特点就是成向对象的程序设计。除了最基本的数据类型外,所有其他部分都被Java看成对象。面向对象的四个特点是:封装性、多态件、继承性、动态联编。以往的一些面向对象的工具并没有真正实现四个特点,如Visual Basic缺乏数据的封装性,而C++没有办法做到动态联编。Java在这四个方而都做得很好。 2、平台无关性 Java为实现平台无关性采取了两个措施。首先,在Java语言的定义中,没有任何依赖于平台或编译器的功能或特性,所以无论采用什么平台或编译器,最后得到的目标码
Java language has the following characteristics: 1, an important feature of object-oriented Java is to become the object of programming. With the exception of the most basic data types, all other parts are treated as objects by Java. The four characteristics of object-oriented are: encapsulation, polymorphism, inheritance, dynamic binding. Some previous object-oriented tools did not really achieve four characteristics, such as Visual Basic lack of data encapsulation, and C + + no way to do a dynamic binding. Java is doing well on all four sides. 2, platform-independent Java platform-independent to take two measures. First of all, in the definition of Java language, there is not any dependence on the platform or compiler features or features, so no matter what platform or compiler, the final target code