The Research of Java Language

2015-10-08 10:35SIBeibei
科技视界 2015年27期

SI Bei-bei

(Department of Computer Science,Central China Normal University,Wuhan Hubei 430000,China)

1 Origins of java language

Java language introduced by Sun in 1995,a cross-platform for distributed computer environments pure object -oriented programming language.Sun’s Java originated in OAK,it draws on the Smalltalk technology,but it is also a simplified C++language.Java’s portability and platform independence have made it the language of choice for developing Web-based applications[1].Java platform-independent means to run on different platforms,Java Virtual Machine introduction (C Java Virtual Machine) technology to achieve Java interface between different platforms.Machine-independent Java data types,the virtual machine is based on the hardware and operating system,Java binary code to explain executive function,which provides an interface for different platforms.

2 Ideology the basic principles of programming language java

Java language compared with the C language,which is more prominent feature is the existence as an object-oriented.Object-oriented,simply speaking,is a simulation model to solve practical problems of people that make it easier to solve complex problems.The basic principle of Java programming language are:①Encapsulation;②Inheritance;③Polymorphism.

3 The execution process of java language

1)Written in the source file,use a text editor,such as Notepad or Edit,to write the source file can not use the word editor,because it contains invisible characters.Programmed to save the source file,the source file name extension must be.Java.

2)Compile the Java source file,The Java Compiler Compiler is a tool for developing applications using Java[2].use the Java compiler (Java.exe)to compile the source file to get byte-code files

3)Run a Java program,Java program is divided into two categories -Java applications and Java applets,Java application must be interpreted byte-code file by the Java compiler (Java.exe);Java applets must by supporting standard browser Java to explain the implementation.

4 Java program development related to the main technical

4.1 Java Database Connectivity technology

Java Database Connectivity technology exists can unified access to different databases,so that can be connected to each other at the same time in a specific programming process between the database,through the appropriate debugging can make database management background.Also,such a technique can be achieved for developers to bring a consistent interface for building complex applications provide a favorable technical assurance.

4.2 Java Annotation Java technology

Java Annotation Java technology allows some elements relate to each other,but also allows the integration of these elements together.This allows the developer to carry out the appropriate classification of these elements according to the different characteristics of different elements and change their behavior at the same time.Walter Cazzola has said:Annotations in Java make it possible to attach custom,structured metadata to declarations of classes,fields and methods.However,the mechanism has some limits:annotations can only decorate declarations and their instantiation can only be resolved statically.

4.3 Java Remote Method Invocation technology

The technology is the basis for building distributed applications.Java objects in the corresponding can be called,so we can make the server and client correlate,in support of the technologies,allowing to achieve a high degree of integration of data,in addition,based on the distributed debugging,you can let the program security and integrity is guaranteed.

5 Java language future

Java language compared to traditional programming languages,mainly has the following characteristics:

5.1 Java language is easy to learn and easy to use

Java language is very simple,here the simple,as opposed to C++is concerned,also its syntax and C++are very similar,but Java abandoned the C++in many low -level,difficult,confusing,prone to error or infrequently used features.Java language is relatively small share of memory,which gives application developers to provide a good development environment,in addition to Java also provides automatic garbage collection,so programmers do not have to worry about memory management.

5.2 Java is an object-oriented language

OOP is an effective means of programmers to write large programs,control of complex programs.Application development adopts the concept of Object -Oriented Programming (OOP) in order to achieve better organization in module partitioning.All object-oriented programming languages support three concepts:encapsulation,polymorphism and inheritance,Java is no exception.Object-oriented technology has the Java language,encapsulation,inheritance,etc.Java language full support dynamic binding,and C++language binding only on the use of dynamic virtual functions,which make its object-oriented technology more perfect,the program can object-oriented programming be fully object-based the object-oriented programming which makes Java have a more“pure”object-oriented programming.

5.3 Java language is interpreted

C and C++and other languages,are carried out for the CPU chip compiler to generate machine code and run the code on a particular CPU related.Java language source code implementation of the method is to go through the compiler,and then use an interpreter to explain the way to run,but not for the CPU chip Java language compiled,but the program is compiled into a byte-code format,then the Java interpreter of the Java platform interpreted byte-code class,implementation process needs to be loaded at the link stage to the operating environment is very close to machine code byte-code files,you can provide a Java virtual machine(JVM) in be interpreted on any system which makes the Java program has a very high independence,Java Virtual Machine (JVM) education has become essential in training embedded software engineers as well as virtual machine researchers and practitioners.

5.4 Java language is multi-threaded

In Java language,the thread is a special object,also known as lightweight processes,a smaller unit than conventional processes that can be executed concurrently.It must be created by the Thread class or subclass.C and C++using the single-threaded architecture,but The Java provides multi-threading support,Java support multi-threading in two ways,on one hand,Java itself is a multi-threaded environment,on the other hand,Java language built-in multi-threaded control,can greatly simplify more threaded application development.Java thread also includes a set of synchronization primitives,which is responsible for the implementation of concurrency control primitives use Java multi-threaded programming interface thread,application developers can easily write support for multi -threaded applications,improve the efficiency of program execution,But to some extent,multi-threaded Java limited by the operating platform,if the operating system does not support multithreaded,then multi-threaded Java may not be manifested.Besides the features of a class -based object -oriented language,Java integrates concurrency via its thread classes,allowing for a multi-threaded flow of control.

6 Advantage of Java language

Regardless of the platform is the biggest advantage of the Java language,refers to applications written in Java can run without modification on different hardware and software platforms.A major problem faced by the program written in other languages is the operating system changes,as well as the core processor upgrade and changes in system resources,may lead to a program error or not run.Java Virtual Machine can successfully solve this problem.

7 Java technology application

7.1 Java Technology in Network Security Management

Today,there’s significant interest in functional languages and frameworks that fit the Web better than imperative languages.Java technology in network security management application is the main use of the Java virtual machine technology and Java application program interface technology,Java Virtual Machine technology is the core technology for the network,this object,virtual machine technology is mainly by the class loading system and related the implementation of components of,Java application program interface technology is mainly related to the operation of the internal interface provides network security management and provide a set of related standards for the host.

7.2 Java technology in embedded systems

Embedded system is a highly reliable system,which is based on the use of computer software and hardware can be cut out of the design characteristics of the system.Nowadays,Java is used in all types of embedded devices.Some design of embedded systems is the use of Java technology embedded system,embedded system technologies including Java code layer,Java library,the local library,the platform layer and the hardware layer.

8 Development trend of java language

In the application of IT industry,In the beginning,in order to make the Java language and database closely designed Java servlet technology and SQL-J technology.The most important is the rapid development of JSP technology,the network is more practical application of Java language,more effective and efficient,so it has become the preferred technique in IT industry.JSP use Java language as its server-side language,and combines a variety of other client language like JavaScript is the most widely used web language for client-side applications.

9 Conclusion

What can be learned from the above is Java technology.As well as related technologies Java applications and the prospect of Java technology trends and the future.Overall,Java technologies are complementary of each technology,restrict each other mutual support,precisely because of the existence of such a relationship,we can make Java technology in all walks of life plays its due role.With the difficulty of reducing its programming professionals will make more effort placed on the design framework written in Java language and so on.At present,in the application of the Java language has established a good foundation practice well and get many consumers,it is set up around a lot of Java language technology research group designed to further study its advantages on the server side to the wider application of well systemwide extension,is expected soon in the future,Java language should be more large-scale,more practical.

[1]Franz M.The Java Virtual Machine:a passing fad[J].IEEE Software,1998,15(6):26-29.

[2]Kodaganallur V.Incorporating language processing into Java applications:a JavaCC tutorial[J].IEEE Software,2004,21(4):70-77.