Regular expression + XML + reflection + design pattern job

< p align = "center" > regular expression + XML + reflection + design pattern job

1、 Fill in the blanks

2、 Multiple choice questions

The dynamic proxy class is the same as the static proxy class. The developer must write the source code and compile it

Multiple attributes can be used in tags

3、 Judgment question

4、 Short answer

A: the characteristics of XML are mainly reflected in the following aspects.

1) good readability

2) convenient scalability

3) separation of data content and its form

4) facilitate information retrieval

5) it can be easily applied across platforms

6) support information interaction between different languages and different characters

7) greatly improve the hyperlink performance of web pages

8) data granular update can be realized

A: XML related technologies mainly include: DTD and XML schema technology, CSS and XSL style technology, DOM technology, Xlink and XPath link technology, etc.

A: DTD and XML schema technology are used to standardize and validate XML documents, CSS and XSL style sheet technology are used to format and display XML documents, DOM technology is used to display and program XML documents as data objects, and Xlink and XPath linking technology are used in XML documents.

Answer: Extensible Markup Language (XML) is used to describe the data objects of a file called XML. At the same time, it also partially describes the behavior of computer programs dealing with these data objects. XML is essentially a custom language for electronic document information. Anyone and any industry can follow these rules, define various tags to describe all data elements in information, and then use a method called Parser applet for processing.

SGML is powerful, but too complex: html is simple, but it can't handle a large amount of structured information. XML language not only has the powerful function and scalability of SGML, but also has the simplicity and ease of use of HTML. It can meet the rules of the World Wide Web - simplicity

The separation of XML information organization and description not only changes the fixed tag set of HTML, but also fundamentally changes the information organization of traditional web pages, and designs a language that enables all computer systems to communicate "intelligently". The Internet based on information transmission has undergone great changes in information acquisition, retrieval and exchange, which has laid the foundation for the intelligence of the Internet. XML can easily cross platforms and act as a bridge for the exchange of data in different formats.

A: reflection in Java is a powerful tool that can create flexible code that can be matched when running without linking between components. Reflection allows the use of program code to access the internal information of the classes loaded into the JVM when writing and executing, rather than the code cooperating with the selected classes in the source code. This reflection becomes the main tool for building flexible applications. It should be noted that if used improperly, the cost of reflection will be high.

Class reflection in Java is one of the features of Java programming language. It allows running Java programs to check themselves, or "self audit", and can directly operate the internal properties of the program. This capability of Java may not be used much in practical applications, but it does not exist in other languages at all. For example, in Pascal, C or C + +, there is no way to obtain information related to function definition in the program.

In JDK, the java reflection mechanism is mainly implemented by the following classes, which are located in Java Lang.reflect package

1) class: represents a class

2) field class: represents the member variable (attribute) of the class

3) method class: represents the member method of the class

4) constructor class: represents the construction method of the class

5) array class: provides static methods for dynamically creating arrays and accessing array elements

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>