Some time ago Because of a written test, two articles about written questions were found online during the preparation period, one of which
And another one forgotting the name and inspired after reading.
??????? In the process of looking for these answers, I recorded the relevant answers, and formed these things. It is necessary to have the following answers that there are many incomplete or even mistakes. You need to correct it and improve it, don't throw my eggs.
?????? I hope this article can help you will go to the written test site, and more people want more people to join the collected pen test questions and improve the answer to these work, and make a better job opportunity for everyone. contribution.
?????? He thanked the authors of the authors on the collection and finishing of the written test topic.
?????? If you have any comments and suggestions, please contact me by QQ: 6045306, mail: huijunzi@21cn.com.
Java foundation:
1, the scope of public, private, protected, and the difference between the non-written A: The difference is as follows: Scope ????????? 当 当 ?????? Same package? Children and grandchildren ???? ?? Other packagepublic ??????????? √ ??????????????????????? √ ?? ?????????? Protected ??????? √ ??????????????????????????????? ? √ ???????????? × friendly ????????? √ ????????????????????????? ???????? × ??????????? × private ?????????? √ ???????????? ×??? ??????????????? × ??????????? × no time, default is Friendly
2. ARRAYLIST and VECTOR differences, the difference between HashMap and HashTable: ARRAYLIST and Vector are mainly from the second aspect. I. Synchronization: Vector is a thread safe, that is, the synchronization, and arraylist is the line program. Safe, not synchronized two. Data growth: When you need to grow, Vector default growth is the original training, and ArrayList is the original half of Hashmap and HashTable mainly from three aspects. I. Historical reasons: HashTable is an implementation of the old Dictionary class. Hashmap is an implementation of the MAP interface introduced by Java 1.2. Synchronism: HashTable is the thread security, that is, HashMap is not safe. What is not synchronized. Value: Only HashMap allows you to take null values as a key or value of a table.
3, can the CHAR type variable can not store a Chinese Chinese character? Why? A: It is possible to define a Chinese, because Java is encoded in Unicode, a char accounts for 16 bytes, so putting a Chinese is no problem.
4, many threads have several implementations, what is it? Synchronize several implementation methods, what is it? A: Multi-thread has two implementation methods, inheriting the THREAD class and implementing the implementation of the Runnable interface synchronization Species, Synchronized, Wait and Notify
5, inherited the execution order problem, generally a choice question, ask what you will print? A: Parent class: package test; public class? Fatherclass {??? public fatherclass ()? {?? system. out.println ( "FatherClass Create") ;?}} subclasses: package test; import test.FatherClass; public class ChildClass extends FatherClass {public ChildClass () {?? System.out.println ( "ChildClass Create"??? );?}? public static void main (string [] args)? {?? fatherclass fc = new fatherclass (); ?? childclass cc = new childclass () ;?}} output: c: /> java test. ? ChildClassFatherClass CreateFatherClass CreateChildClass Create6, the internal implementation class a: the following sample code: package test; public class OuterClass {private class InterClass {?? public InterClass () ?? {??? System.out.println ( "??? Interclass create "); ??}?}? Public outerclass ()? {?? interclass ic = new interclass (); ?? system.out.println (" OuterClass Create ");?}? Public static void main (String [] args)? {?? outerclass = new outerclass () ;?}} output: c: /> java test / outerclassinterclass createouterclass create: public class outernalclass {? private double d1 = 1.0;??? // insert code heren} you need to inse Rt An Inner Class Declaration At line 3. Which Two Inner Class Declarations Are
Valid? (choose two.) A. Class Inner {???? public static double methoda () {RETURN D1;} ??} B. Public class innerone {???? static double methoda () {return D1;} ??} C. private class innerone {???? Double methoda () {return d1;} ??} D. Static class inner one {???? protected double methoda () {return D1;} ??} E. Abstract class innerone {???? public abstract double methoda (); ??} The description is as follows: 1. Static internal class can have static members, not static members. Therefore, A, B is wrong. Non-static members of static internal classes can access the external class static variables, and the unstatic variables of the external class; RETURN D1 error.
Therefore, D is not three. Non-static members of non-static internal classes can access unstatic variables of external classes. Therefore, C is correct. The answer is C, E
7, how to optimize the procedure? I hope everyone will make up, thank you 8, FLOAT float f = 3.4 is correct? A: Incorrect. The accuracy is not accurate, and it should be converted with a mandatory type, as shown below: float f = (float) 3.4
9. Introduction to Collection Framework in Java (How to write your own data structure)? A: Collection Framework as follows: Collection├List│├LINKEDLIST│├ARRAYLIST│ └Vector│ └stack └SetMap├WeakhashmapCollection is the most basic Collection interface, a collection represents a group of object, ie the element of Collection (Elements) Map provides mapping of Key to Value
10. Abnormal handling mechanism, event mechanism in Java?
11. Proffles and inheritance in Java? I hope everyone will make up, thank you.
12, abstract class and interface? A: Abstract class and interface are used for abstraction, but the abstract class (Java) can have its own partial implementation, and the interface is completely an identifier (both multiple inheritance functions).
13, Java communication programming, programming questions (or question and answer), programming, read servers several characters, and write to local displays in Java Socket? A: Server end program: package test; import java.net. *; Import java.io. *;
PUBLIC CLASS Server {? private serversocket ss;? private buffreader in;? private server ()? {?? Try ?? {??? ss = new serversocket (10000); ?? ? While (true) ??? {???? socket = ss.accept (); ???? string remoteip = socket.getinetaddress (). gethostaddress (); ???? String remoteport = ":" Socket .getlocalport (); ???? system.out.println ("a client com in! ip:" remoteip remoteport); ???? in = new bufferedReader (New
InputStreamReader (socket.getinputstream ())); ???? string line = in.readline (); ???? system.out.println ("CLEINT Send IS:" line; ???? out = new PrintWriter (socket.getoutputstream (), true); ???? out.println ("Your message received!"); ???? out.close (); ???? in.close ();??? ? Socket.close (); ???} ??} catch (ooException e) ?? {??? out.println ("wrong"); ??}?}? public static void main (String [] args ? {?? new server () ;?}}; client end program: package test; import java.io. *; import java.net. *;
PUBLIC CLASS Client {? sufferedreader in;? printwriter out; public client ()? {?? try ?? {??? system.out.println ("try to connection 127.0.0.1:10000") ??? Socket = new socket ("127.0.0.1", 10000); ??? System.out.Println ("The Server Connected!"); ??? System.out.println ("please enter Some Character: "); ??? bufferedreader line = new buffredreader (new"); ??? out = new printwriter (Socket.getOutstream (), true); ??? out.println (line.readline ()) ; ??? IN = New BufferedReader (socket.getinputStream ())); ??? system.out.println (in.readline ()); ??? out.close (); ??? in. CLOSE (); ??? socket.close (); ??} Catch (IOEXCEPTION E) ?? {??? out.println ("WRONG"); ??}?}? public static void main (String [] ARGS)? {?? new client () ;?}};
14. Use Java to achieve a method of sorting, Java class to realize serialization (two)? As in the Collection framework, what kind of interface is to be achieved? A: Sort by the insert method is as follows; import java.util. *; Class? INSERTSORT {? Arraylist al;? Public insertsort (int Num, int mod) {?? al = new arraylist (num) ;? ? Random rand = new random (); ?? system.out.println ("the arraylist sort before:"); ?? for (int i = 0; i
?? {
??? al.add (new integer (math.abs (rand.nextint ())% mod 1));
??? system.out.println ("Al [" i "] =" al.get (i));
??}
?
PublicoviD Sortit ()
? {
?? integer tempint
?? int maxSize = 1;
?? for (int i = 1; i
?? {
?????? Tempint = (Integer) Al.Remove (i);
???? if (Tempint.intValue ()> = ((Integer) Al.Get (MAXSIZE-1)). INTVALUE ())
???? {
????? al.add (maxsize, tempint);
????? maxSize ;
????? system.out.println (al.toString ());
????} else {
????? for (int J = 0; J
????? {
?????? if
((Integer) Al.Get (j))). INTVALUE ()> = Tempint.intValue ()) ?????? {??????? Al.Add (J, TemPint);??? ???? MaxSize ; ??????? system.out.println (al.tostring ()); ??????? Break; ??????} ?????} ?? ??} ??} ?? system.out.println ("the arraylist sort after:"); ?? for (int i = 0; i ?? {
??? system.out.println ("Al [" i "] =" al.get (i));
??}
?
Public static void main (string [] args)
? {
?? INSERTSORT IS = New Insertsort (10,100);
?? is.sortit ();
?
}
The Java class realizes the methodification method is to implement java.io.serializable interface
Compare Compare Comparison in the Collection Framework To implement the Comparable interface and Comparator interface
15. Programming: Write a function that intercept strings, input to a string and byte, and output a string that is intercepted by byte. But to ensure that the Chinese characters are not taken, such as "I abc" 4, should be "I abc", enter "I am ABC Han DEF", 6, should output "I ABC" instead of "I am ABC Han ". A: The code is as follows: package test;
Class? splitstring {? string splitstr;? int splitByte; PUBLIC SPLITSTRING (STRING STR, INT BYTES)? {?? splitstr = Str; ?? splitbyte = bytes; ?? system.out.println ("the string is: ' " Splitstr "; splitbytes = " splitbyte) ;?}? Public void splitit ()? {?? int loopcount; ??
LoopCount = (splitstr.length ()% splitbyte == 0)? (splitstr.length () / splitbyte) :( splitstr.length () / split
BYTE 1); ?? System.out.println ("Will Split INTO" LoopCount; ?? for (int i = 1; i <= loopcount; i ) ?? {??? = == loopcount ) {????
System.out.println (splitstr.substring ((i-1) * splitbyte, splitstr.length ())); ???} else {????
System.out.println (splitstr.substring ((i-1) * splitbyte, (i * splitbyte))); ???} ??}?}? Public static void main (string [] args)? {?? Splitstring ss = new splitstring ("TEST DD Wen DSAF in Male Big 3443N China 43 Chinese
0ewldfls = 103 ", 4); ?? ss.splitit () ;?}}
16, Java multi-thread programming. Write a multi-thread program with Java, such as writing four threads, two plus 1, two to one variable minus one, output. I hope everyone will make up, thank you 17, String and StringBuffer. A: The length of String is invisible, and the length of StringBuffer is variable. If you use the content in the string, especially when you want to modify, use StringBuffer, if you finally need String, use StringBuffer's toString () method
JSP
1, what built-in objects do you have? Parameters ?? Response web page back user-end response ?? PageContext page The properties of the page are managed here. "The session period related to the request ?? Application servlet is executing the contents of the OUT to transmit the response ?? config Servlet's architecture ?? Page JSP page itself ?? Exception for error web pages, unwaped exceptions
2, what actions do you have? What is the role? A: JSP has the following six basic actions ?? JSP: include: Introduces a file when the page is requested. ?? JSP: Usebean: Look for or instantiate a Javabean. ?? JSP: setProperty: Sets the property of JavaBean. ?? jsp: getproperty: Outputs the properties of a JavaBean. ?? jsp: forward: Turning the request to a new page. ?? jsp: plugin: Generate Object or Embed tags based on the browser type to the Java plugin
3, Dynamic INCLUDE and Static Include in JSP? A: Dynamic include uses JSP: Include action implementation ??
It always checks the changes in the file included, suitable for use with dynamic pages, and can be implemented with parameters ?? Static include Code is implemented with the include false code, which will not check the change of the file, suitable for containing static pages?? <% @ include file = "incruded.htm"%>
4, what is the two types of jumps? What is the difference? A: There are two kinds, respectively:?
?
• The former page does not turn to include the page referred to in INCLUDE, just display the result of the page, the main page is still the original page. It will come back later, which is equivalent to the function call. And can be used with parameters. The latter is completely turned to a new page and will not come back. Equivalent to the GO TO statement.
Servlet
1. Speak the life cycle of servlet? A: servlet has a good definition of life, including loading and instantiation, initialization, processing request, and service end. This survival period is expressed by the init, service, and destroy method of the javax.servlet.servlet interface.
2, the servlet version (forgot what two of the two versions are you)? I hope everyone will make up, thank you.
3, the difference between forward () and redirect () in the Java Servlet API? A: The former is only the steering of the control of control in the container. It does not show the turn-behind address in the client browser address bar; the latter is completely jump, the browser will get the address of the jump, and re-re- Send a request link. Thus, the link address after the jump is seen from the address bar of the browser. Therefore, the former is more efficient, and when the former can meet the needs, try to use the forward () method, and this also helps to hide the actual link. In some cases, for example, you need to jump into a resource on a further server, you must use the sendRedirect () method. 4, Servlet basic structure public class ServletName extends HttpServlet {? Public void doPost (HttpServletRequest request, HttpServletResponse response) throws ????? ServletException, IOException? {?????}? Public void doGet (HttpServletRequest request, HttpServletResponse response "THROWS ????? servletException, ioException? {?????}}
JDBC, JDO
1, you may let you write a JDBC even Oracle program and implement data queries. A: The program is as follows: package hello.ant; import java.sql. *; Public class? JDBC {? String dburl = "JDBC: Oracle: @ 127.0.0.1: 1521: Orcl ";? string theuser =" admin ";? string thepw =" manager ";? connection c = null;? STATEMENT CONN; RESUL1SET RS = NULL;? public JDBC ()? {?? Try {??? Class.Forname ("Oracle.jdbc.driver.OracleDriver"). NewInstance (); ????????? c = drivermanager.getConnection (dburl, theuser, thepw) ;? ?? conn = c.createStatement (); ??} catch (exception e) {??? E.PrintStackTrace (); ??}?}? public boolean executeUpdate (String SQL)? {??? Try ??? {????? conn.executeUpdate (SQL); ????? Return True; ???} ??? Catch (SQLEXCEPTION E) ??? {????? E.PrintStackTrace (); ?? ??? RETURN FALSE; ???}?}? public resultSet ExecuteQuery (STRING SQL)? {??? rs = null; ??? Try ??? {????? = conn.executeQuery (SQL) ; ???} ??? Catch (SQLEXCEPTION E) ??? {????? E.PrintStackTrace (); ???} ??? Return RS;?}? public void close ()? {?? ? try ??? {????? conn.close (); ????? c.close (); ???} ??? carat (exception e) ??? {????? e .printstacktrace (); ???}?}? public static void main (String [] Ar GS)? {?? resultset = new jdbc (); ?? rs = conn.executeQuery ("SELECT * from test"); ?? Try {?? while (rs.next ())? ? {??? system.out.println (rs.getstring ("ID")); ??? system.out.println (rs.getstring ("name")); ??} ??} catch (Exception E ) ?? {??? E.PrintStackTrace (); ??}?}} 2, Class.Forname role? Why is it necessary to use: Call this access Returns an object that is specified by a string specified class name.
3. What is JDO? A: JDO is a new specification for the Java object persistence, which is a referred to as Java Data Object, and is also a standardized API for accessing objects in a data warehouse. JDO provides transparent object storage, so that the developer does not require additional code (such as the JDBC API). These cumbersome routines have been transferred to the JDO product provider, so that developers are freed out to concentrate on time and energy logically. In addition, JDO is flexible because it can run on any data underlayer. JDBC is just more common to relational database (RDBMS) JDO, providing storage capabilities of any data underlying, such as relational database, file, xml, and object database (ODBMS), etc., make it stronger to apply portability. 4. Subject solution in Oracle's large amount of data. Generally, the ID method is used, and there is a three-layer nested method. A: One page method <%? INT i = 1 ;? int Numpages = 14 ;? string pages = request.getParameter ("Page");? Int currentpage = 1 ;? CurrentPage = (Pages == NULL)? 1): {INTEGER.PARSEINT (PAGES)}? SQL = "Select count (*) from tables" ;? resultset = dblink.executeQuery (SQL);? While (rs.next ()) i = rs.Getint 1); int INTPAGECOUNT = 1 ;? INTPAGECUNT = (i% Numpages == 0)? (I / numpages): (I / Numpages 1) ;? int nextpage; int uppage ;? nextpage = currentpage 1; ? if (nextPage> = INTPAGECUNT) NextPage = INTPAGECUNT;? UPPAGE = CURRENTPAGE-1 ;? IF (UPPAGE <= 1) UPPAGE = 1 ;? rs.close () ;? SQL = "SELECT * from Tables";?? RS = Dblink.executeQuery (SQL) ;? i = 0 ;? While ((i
%>
// Output content
/ / Output page connection
Total: <% = currentpage%> / <% = INTPAGECOUNT%>
First page
HREF = "list.jsp? Page = <% = UPPAGE%>"> Previous <%? for (int J = 1; j <= INTPAGECOUNT; J ) {? if (currentpage! = j) {%>? [<% = j%>] <%?} else {? out.println (j) ;?}?}%> Next page last page
XML aspect
1, what parsing technology does XML? What is the difference? A: Dom, SAX, STAX and other DOMs: It is very powerful when handling large files. This problem is caused by the tree structure of the DOM. This structure is more memory, and the DOM must load the entire document into memory before parsing the file, suitable for the random access of XML SAX: not now in Dom, SAX is Event drive type XML parsing method. It sequentially reads the XML file, and does not need to load all files all. When encountered at the beginning of the file, the end of the document, or the label is ended, it triggers an event, the user handles the XML file by writing processing code in its callback event, suitable for the order of XML, Streaming API For XML (Stax) 2, which aspects do you use to use XML technology? How to implement? A: Use data storage, information configuration two aspects. When doing a data exchange platform, the data that cannot be data sources cannot be assembled into an XML file, and then the XML file is compressed and encrypted, and then transmitted to the recipient through the network, and the decryption is decryled and decompressed and the related information is reduced in the XML file. When doing software configuration, it is easy to use XML, and the various configuration parameters of the software are stored in the XML file.
3. How to solve Chinese problems when using JDOM to resolve Chinese issues? How to resolve? A: Look as follows, use coding mode to solve package test; import java.io. *; Public class domtest {? Private string infile = "C: / /people.xml";?private string outfile = "c: //people.xml"; ?? public static void main (String args [])? {???? new domtest (); ???}? public DOMTEST ()? {?? Try ???? {?????? Javax.xml.parsers.DocumentBuilder Builder = ???? ??
Javax.xml.Parsers.DocumentBuilderFactory.NewInstance (). NewDocumentBuilder (); ????? Org.w3c.dom.document doc = builder.newdocument (); ????? Org.w3c.dom.Element root = Doc.createElement ("teacher"); ????? Org.w3c.dom.Element Wang = doc.createElement ("Wang"); ??? org.w3c.dom.Element Liu = doc.createElement ("Liu "); ????? wang.appendchild (Doc.createTextNode (" I am Wang Teacher ")); ????? root.appendchild (wang); ????? doc.appendchild (root) ;? ? ??? javax.xml.transform.Transformer transformer = ???? ?? javax.xml.transform.TransformerFactory.newInstance () newTransformer ();.? ???? transformer.setOutputProperty (javax.xml.transform. OutputKeys.Encoding, "GB2312"); ????? Transformer.SetOutputProperty (javax.xml.transform.outputkeys.indent, "yes");??
? ?????? Transformer.Transform (new javax.xml.transform.dom.domsource (doc), ???? ?????? Newjavax.xml.transform.Stream.StreamResult (outfile); ????} ???? catch (Exception E) ???? {????? system.out.println (E.GetMessage ()); ????} ???}}
4, programming with Java to parse XML way. A: Use SAX mode to parse XML, XML files are as follows:
?
Wang Xiaoming
?
Information Institute
??
?
6258113
?
Male, born in 1955, Ph.D., marked in Hainan 95
?
? Event callback class SAXHandler.java?import java.io. *; import java.util.Hashtable; import org.xml.sax *;. Public class SAXHandler extends HandlerBase {private Hashtable table = new Hashtable ();??? Private String currentelement = null;? Private string currentValue = null;? Public void settable (Hashtable Table) ??? {??? this.table = Table; ???}? Public hashtable gettable () ??? {? ?? Return Table; ???}? public void startelement (string tag, attributelist attrs)? throws saxexception ??? {??? currentelement = tag; ???}? public void characters (char [] ch, int Start, int LENGTH)? THROWS SAXEXCEPTION ??? {??? CurrentValue = New String (ch, start, length); ???}? public void endelement (string name) throws SAXEXCEPTION ??? {??? f (Currentelement.equals (Name)) ????? Table.put (Currentelement, CurrentValue); ???}?} JSP content display source code, SAXXML.JSP: Analysis XML file people.xml <% @ Page ErrorPage = "Errpage.jsp" ContentType = "text / html; charSet = GB2312"%> <% @ page import = "java.io. *"%> <% @ page import = "java.util.hashta BLE "%> <% @ page import =" org.w3c.dom. * "%> <% @ page import =" org.xml.sax. * "%> <% @ page import =" javax.xml.parsers . SaxParserFactory "%> <% @ page import =" javax.xml.parsers.saxparser "%> <% @ page import =" saxy "%> <% file file = new file (" c: //people.xml " ); FileReader reader = new FileReader (file); Parser parser; SAXParserFactory spf = SAXParserFactory.newInstance (); SAXParser sp = spf.newSAXParser (); SAXHandler handler = new SAXHandler (); sp.parse (new InputSource (reader), Handler);
Hashtable hashtable = handler.gettable (); out.println ("Teacher Information Table
"); Out.println ("
Name " "
" (String) hashtable.get (New String (" name ") " ""; out.println ("
College " "
" (String) Hashtable.get (New String (" College ") " ""; out.println ("
Telephone " "
" " "" "" "", "" "; Out.println (" "
Remarks " "
" (String) Hashtable.Get (New String (" Notes ") " "); Out.println ("
");
%>
EJB aspect
1. What are the contents of EJB2.0? What is the difference between EJB2.0 and EJB1.1? A: The specification includes the bean provider, the application assembly, EJB container, EJB configuration tool, EJB service provider ,System administrator. In this regard, the EJB container is the core of EJB. The EJB container manages EJB creation, undo, activation, deactivation, and the database connection, etc. Important work. JSP, Servlet, EJB, JNDI, JDBC, JMS .....
2, the difference between EJB and Java Bean? A: Java bean is a reused component, which does not have a strict specification for Java Bean. In theory, any Java class can be a bean. In general, since the Java bean is created (such as Tomcat) by the container, the Java Bean should have a 11-free constructor, in addition, the Java Bean also implements the Serializable interface to implement the persistence of beans. Java Bean is actually equivalent to the COM component in the local process in the Microsoft COM model, which cannot be accessed across the process. Enterprise Java Bean is equivalent to DCOM, ie distributed components. It is based on Java-based remote method call (RMI) technology, so EJB can be remotely accessed (cross processes, cross-computers). But EJB must be deployed in a container such as WebSpere, WebLogic, and EJB customers never access true EJB components, but access them through their container. The EJB container is an agent of EJB components, and the EJB component is created and managed by the container. The client accesses the real EJB component through the container.
3, EJB's basic architecture A: A EJB includes three parts: • Remote interface code code? Package beans ;? import javax.ejb.ejbobject ;? import java.rmi.RemoteException ;? public interface add extends ejbobject? {? ? // some method declare?}? Home Interface Interface code? package Beans ;? import java.rmi.RemoteException ;? import jaax.ejb.CreateException ;? import javax.ejb.EJBHome ;? public interface AddHome extends EJBHome? { ??? // some method declare?}? EJB class code? package Beans ;? import java.rmi.RemoteException ;? import javax.ejb.SessionBean ;? import javx.ejb.SessionContext ;? public class AddBean Implements SessionBean? {??? // Some Method Declare?}? J2EE, MVC
1, all parts of the MVC have those technologies to achieve? How to implement? A: MVC is a short written by Model-View-Controller. "Model" is the application's business logic (implemented by javabean, ejb component), "view" is the application's representation surface (generated by JSP page), "Controller" is a process control (generally a servlet) The application logic, processing procedure, and display logic are achieved by this design model into different components. These components can interact and reuse.
2, the difference between application servers and web server? I hope everyone will make up, thank you.
3, what is J2EE? A: JE22 is a multi-dimi-Diered, distributed, distributed, component-based, based on Component-Base, in which an application system can follow Function is divided into different components that can be on different computers and are in the corresponding hierarchy (TIER). The hierarchies are included in the ClientN Tier components, web layers, and components, Business layers, and components, and corporate information systems (EIS) layers.
4. Web service noun explanation. JSWDL development package. JAXP, JAXM explanation. SOAP, UDDI, WSDL Explanation. A: Web Service Description Language WSDL SOAP, Simple Object Access Protocol, is a lightweight protocol for exchange XML encoding information. The purpose of UDDI is to establish standards for e-commerce; UDDI is a web-based, distributed, implementation standard specification provided by the information registry for Web Service, and also includes a group of web services that can provide themselves. Register to achieve the implementation of the access protocols that other companies can discover.
5, links and differences between BS and CS. I hope everyone will make up, thank you.
6, Struts Application (such as Struts Architecture) A: Struts is a Framework that uses Java Servlet / JavaServer Pages technology to develop web applications. The Struts can develop an application architecture based on MODEL-View-Controller design mode. Struts has the following main functions: I contain a controller servlet to send the user's request to the corresponding Action object. II.Jsp Free Tag Library and provide association support in the Controller Servlet to help developers create interactive form applications. 3. Provide a series of practical objects: XML processing, automatically handle JavaBeans properties, international tips and messages through Java Reflection APIs. Design mode
1. During the development, the design mode is used? What are the occasions? A: Each mode describes a problem that has emerged in our environment and then describes the core of the solution. In this way, you can use the existing solutions countlessly without counting the same job. Mainly used in the design pattern of MVC. Used to develop JSP / Servlet or J2EE related applications. Simple factory model, etc.
2, UML Answer: Standard Modeling Language UML. Model example, static map (including class diagram, object map, and package), behavioral map, interaction map (sequential diagram, cooperation map), implementation diagram,
JavaScript
1. How to verify digital? Var RE = / ^ / d {1,8} $ | /. / D {1, 2} $ /; var str = document.form1.all (i) .value; var r = Str.Match (re); if (r == null) {?? sign = -4; ?? Break;} else {?? Document.form1.all (i) .value = parsefloat (STR);}
CORBA
1, what is CORBA? What is the use? A: CORBA standard is a common object request agency architecture, which is standardized by the object management organization (Object Management Group, abbreviated as OMG). Its composition is the interface definition language (IDL), language binding (binding: also translated into a cable) and an agreement to interoperate interoperability. Its purpose is to use different programming languages to write in different processes to develop in different processes.
Linux
1, Linux underline, explanation of the GDI class. A: Linux implementation is based on the "one-to-one" thread model of the core lightweight process, and a thread entity corresponds to a core lightweight process, and the management between the thread is implemented in the nuclear external function library. The GDI class is an image device programming interface class library.