【正文】
turns to adjusts on the object the method. Example:ActionListener interface monitor. Similar API includes: clone:The clone method is a object protection method, this meant your code cannot simple invoke it. 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 private 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 pilation event driver. class (proxy): 1) appointing all codes that interfaces request 2) all methods (toString equals) that object class define 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 used in the Unicode code char, Boolean. 1. java is simple Java and C + + are very similar, but much simpler. All the highlevel programming language features, is not absolutely necessary have been deleted. For example, Java does not overload operator, the title of the document, preprocessing, puting pointer, the structure of the joint, multidimensional 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: publicclassHelloInter ( publicstaticvoidmain (Stringargv []) ( System. out. println ( HelloInter!) ) ) 2. Java is objectoriented Java is an objectoriented 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 objectoriented languages, Java code also organized by category. Each category 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 language to allow multiple inheritance, but it may cause confusion and unnecessarily plicated language. For example, imagine that an object would inherit two pletely different category. Java also supports the kind of summary of the interface. This allows programmers to define the interface methods, 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 multiinheritance of a number of advantages. The implementation of an object can be any number of interfaces. IDL interface and Java interface very similar. Very easy to set up IDLJ piler. In other words, Java can be used to create a CORBA object system distributed object system. In the view of many puter systems use IDL interface and CORBA objects, such patibility is important. 3. Java is a type of static In a Java program, it is essential to 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 piler can detect the type of error. However, Java System objects are also dynamic types. A requirement for the type of dynamic is often possible, so programmers can write the procedures for different types of objects to do different things. 4. Is a Javabased piler When running Java programs, which were first piled into byte code. Byte code is very similar to the machine instructions, so Java program is very efficient. However, the byte code does not specifically for a particular machine, so no need to repile Java program can be in many different puter implementation. Java source code files were piled into a category, which is equivalent to process byte code performance. In a Java class file, and an example for all of the variables are in the light of, and for the first time in the implementation of the code be resolved. This makes the code more mon and more easily subject to revision, but still high. 5. Java is architecture neutral Java language is the same for each puter. For example, simple types are the same: 32bit integer always, always 64bit 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 piler and development environment will be different, so that this process nuisance bee a transplant. Java programs can easily gain access to transplants, and there is no need to repile. 6. Java is a sound Java program can not be caused by the collapse of the puter. Java careful testing of the system memory of each visit, make sure it is legitimate and will not cause any problems. However, even if the Java