Java's strengths again!

zhaozj2021-02-08  281

1.java is a simple Java and C is very similar, but it is much more simple. In all characteristics of the high-level programming language, it is not deleted. For example, Java has no operator overload, title document, pre-processing, pointer operation, structure, combination, multidimensional array, template and implicit type transition. If you know a little C, C or PASCAL, you will soon drive Java. Here is a simple Java Hello World program: public class hellointernet {public static void main (string argv []) {system.out.println ("Hello In-Ternet!")}} 2.java is an object-oriented Java is An object-oriented programming language. In addition to simple types, such as digital and Bur operators, large parts in Java are objects. Just as the language of any face, the Java code is also organized. Each class defines a set of specified parallelism. A class can keep another class. On the roots of the class, it is often a class object. Java support single relay class level structure. That is to say, each class can only relax one other class at a time. Some words allow more relaxation, but this can be made into confusion, so that the language does not need to be complex. For example, it is difficult to imagine, a pair of objects will continue to be two different categories. Java also supports the interface of the abstract class. This allows the program to first define the interface, without having to worry about the implementation of the method. A class can take multiple interfaces, and there is a lot of advantages that have truly more relaxed sex. An object can also be applied to the number of interfaces. The Java interface is very similar to the IDL interface. It is easy to build an IDLJ compiler. That is to say, Java can be used in Corba to build a stand-up parallel icon system. This compatibility is important for the use of IDL interfaces and CORBA object systems in many multi-operative capacity systems. 3. Java is a static type of type in a Java program, must define the type of object (number, characters, arrays, etc.) used. This helps the program that has quickly issued a question because of the interpretation of the programming. However, the objects in the Java system also have a dynamic type. To seek a pair like dynamic type, it is possible, and the program written by the program can do something different from the different type of object. 4. Java is a compiled type when running Java program, it first compiled into a byte code. The byte code is non-common class similar to the machine command, and the Java program is non-altered.

However, the byte code is not to be a specific machine, and the Java program can be performed on many different plachers. The Java source program is compiled into a class file, which is the description of the code. In a Java class file, the reference to the method and the example variable is in the name of the name, and the resolution is applied when the code is executed. This makes the code more common, less susceptible to modifying the impact, but still cost effective. 5. Java is a Java language standing in the system-architecture. For example, the simple type is constant: the integer is always 32 digits, and the long integer is always 64-bit. It is quiz that the fashionable speech such as C and C is not like this. By these languages, it is different from this self, each of the compilers and the opening of the environment is different, which makes the program transfer into a question. The mount of Java program is very easy, and no need to renew new compilation. 6. Java is a healthy Java program that cannot be collapsed into a plan. The Java system carefully detects each visit to the memory, which makes it a combination, and does not cause any questions. However, it is possible to make the Java program can also be wrong. If there is anything about it, the program will not collapse, and the exception will be abandoned. The program will develop this kind of exception, and it will be processed. The procedure of the transformation can be accessed the entire memory of the computer. The program can be (unconscious) to modify any of the facts in memory, which will make a problem. The Java program can only access those parts that allow them to visit them, and the Java program cannot modify the value that does not propagate. 7.java is a small consuming of Java is to run on a small computer, as a programming language, its system is comparable. It can effectively run on a 4MB of RAM's PC. Java translators only occupy hundreds of KB. This translator is reliable for the lack of Java's platform. Since Java, it is very reasonable for a small memory computer, such as Java-based PCs, and electricians, oven, electrical machinery, and household calculations. 8.java is a multi-threaded Java program to perform one or the above thread. For example, it can be completed at a thread into a certain amount of time, and its thread is interactive with the user. The user does not have to stop the work, and wait for the Java process to complete the time. The programming between multi-threaded environments is often difficult, because it can be present at the same time as many east west.

转载请注明原文地址:https://www.9cbs.com/read-1713.html

New Post(0)