There may be problems and answers when I apply for Java written test

xiaoxiao2021-03-06  68

Java foundation:

1, scope public, private, protected, as well as if you do not write

A: The difference is as follows:

Scope current class with the same package children, other packages

PUBLIC √ √ √ √

Protected √ √ × ×

Friendly √ √ × ×

PRIVATE × × × ×

Do not write, default is Friendly

2, the difference between ArrayList and Vector, the difference between Hashmap and HashTable

A: ARRAYLIST and VECTOR are mainly from two aspects.

I. Synchronization: Vector is a thread safe, that is to say is synchronized, and ArrayList is unsafe line programs, not synchronous.

II. Data growth: When you need to grow, Vector default growth is the original one, but ArrayList is half.

It is mainly from three aspects on Hashmap and HashTable.

I. Historical reasons: HashTable is an implementation of the MAP interface introduced by the Java 1.2 based on the old Dictionary class.

II. Synchronization: Hashtable is a thread safe, that is, HashMap is unsafe, not synchronous

Three. Values: Only HashMap allows you to take null values ​​as a key or value of a table

3, can the CHAR type variable can be stored 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 a Chinese is no problem.

4, many threads have several implementation methods, what is it? Synchronize several implementation methods, what is it?

A: Multi-thread has two implementation methods, which are inheriting the Thread class and implementing Runnable interface.

There are two implementations in synchronization, Synchronized, Wait and Notify, respectively.

5. Inheriting the order of execution of the class is generally a choice question, ask you what will print out?

A: Parent class:

Package test;

Public Class FatherClass

{

Public FatherClass ()

{

System.out.println ("FatherClass Create");

}

}

Subclass:

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 results:

C: /> java test.childclass

FatherClass Create

FatherClass Create

Childclass Create

6, the internal class implementation?

A: The sample code is as follows:

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 oc = new outerclass ();

}

}

Output result:

C: /> Java Test / OuterClass

Interclass Create

OuterClass Create

Agather:

Public class outerclass {

Private Double D1 = 1.0;

// INSERT CODE Here

}

You NEED TO INSERT An Inner Class Declaration At Line 3. Which Two Inner Class Declarations Are

Valid? (choose two.)

A. Class innerone {

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 innerone {

protected double methoda () {return d1;}

}

E. Abstract class innerone {

Public Abstract Double Methoda ();

}

described as follows:

I. Static internal classes can have static members, not static internal classes, no static members. Therefore, A, b fault

II. Non-static members of static internal classes can access the external class of static variables, not accessible non-static variables; RETURN D1 error.

Dimension

III. Non-static members of non-static internal classes can access unstatic variables of external classes. Therefore, C is correct

IV. The answer is C, E

7. How to optimize the garbage recovery mechanism?

I hope everyone will make up, thank you.

8, FLOAT FLOAT F = 3.4 is it correct?

A: Not correct. The accuracy is not accurate, and it should be converted with a mandatory type, as shown below: float f = (float) 3.4

9. Describe the Collection Framework in Java, including how to write your own data structure)?

A: The Collection Framework is as follows:

COLLECTION

├List

│├LINKEDLIST

│├ARRAYLIST

│ └Vector

│ └stack

└SET

Map

├Hashtable

├Hashmap

└weakhashmap

Collection is the most basic set interface, a collection represents a set of object, ie the elements 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 SOCKET Socket;

PRIVATE BUFFEREDREADER IN

Private PrintWriter Out;

Public 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 Come 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 (ioException 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

{

Socket socket;

Bufferedreader in;

Printwriter out;

Public client ()

{

Try

{

System.out.println ("Try to Connect To 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 bufferedreader (New

InputStreamReader (System.in);

OUT = New PrintWriter (socket.getOutputStream (), 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

Package test;

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));

}

}

Public void 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: '" SPLITSTER "; 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 )

{

IF (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, the difference between 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 have jsp? What is the role?

A: JSP has 9 basic built-in components (can correspond to six internal components of the ASP):

Request user request, this request will contain parameters from Get / POST request

Response web page back to the user's response

The properties of the PageContext page are managed here

Session and request related session

Application Servlet is being executed

OUT is used to transfer the output of the response

Config servlet architecture components

Page JSP page itself

Exception For error web, unconcerned exceptions

2, what actions are there? What is the role?

A: JSP has the following six basic actions

JSP: incrude: Introduces a file when the page is requested.

JSP: Usebean: Find or instantiate a JavaBean.

JSP: setProperty: Sets the properties of JavaBean.

JSP: getProperty: Outputs the properties of a JavaBean.

JSP: Forward: Turn the request to a new page.

JSP: Plugin: Generate Object or Embed tag according to the browser type.

3, Dynamic INCLUDE and Static Include in JSP? Answer: Dynamic include use JSP: Include action implementation

It always checks the changes in the file included, suitable for use with dynamic pages, and can be used

Static Include is implemented with the include false code, which does not check the changes of the file included, suitable for the static page

<% @ include file = "incruded.htm"%>

4, what is the difference between the two jump methods? What is the difference?

A: There are two kinds, respectively:

The frontier page does not turn to 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, talk about the life cycle of servlet?

A: Servlet has a good definition of survival, 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 versions are asked)?

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, the basic architecture of servlet

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: Thin: @ 127.0.0.1: 1521: ORCL";

String theuser = "admin";

String thepw = "manager";

CONNECTION C = NULL; Statement Conn;

ResultSet 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

{

Rs = conn.executeQuery (SQL);

}

Catch (SQLException E)

{

E.PrintStackTrace ();

}

Return RS;

}

Public void close ()

{

Try

{

CONN.CLOSE ();

C. close ();

}

Catch (Exception E)

{

E.PrintStackTrace ();

}

}

Public static void main (string [] args)

{

ResultSet RS;

JDBC conn = 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 used?

A: Call this access to return an object that is specified by a string specified class name.

3, what is JDO?

A: JDO is a new specification for 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: A paging 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 RS = DBLINK.EXECUTEQUERY (SQL);

While (rs.next ()) i = rs.getinT (1);

INT INTPAGECUNT = 1;

INTPAGECOUNT = (I% Numpages == 0)? (i / numpages): (I / Numpages 1);

Int nextpage;

INT.

NextPage = CURRENTPAGE 1;

IF (Next> = INTPAGECOUNT) NextPage = INTPAGECOUNT;

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) {

%>

Next last page

XML aspect

1, what parsing technology is there? Is there anything?

A: There are DOM, SAX, Stax, etc.

DOM: It is very powerful when processing 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, and the user handles the XML file by writing processing code in its callback event, suitable for the order of XML.

Stax: streaming API for XML (stax)

2. What are your aspects of XML technology in the project? How to implement it?

A: Data storage, information configuration is 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 the Chinese problem? How to resolve?

A: Look at the following code, solve the encoding method

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 ("King");

Org.w3c.dom.Element Liu = Doc.createElement ("Liu");

Wang.Appendchild (Doc.createTextNode ("I am 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.setputProperty (javax.xml.transform.outputkeys.indent, "yes");

Transformer.Transform (New Javax.xml.Transform.dom.Domsource (DOC),

New

Javax.xml.transform.Stream.StreamResult (outfile));

}

Catch (Exception E)

{

System.out.println (E.getMessage ());

}

}

}

4. Programming Way to parse XML in Java.

A: The XML file is analyzed by SAX, the XML file is as follows:

Wang Xiaoming

Information College

6258113

Male, born in 1955, Ph.D., marked in Hainan University

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 ingth)

Throws SAXEXCEPTION

{

CurrentValue = New String (CH, Start, Length);

}

Public void endelement (String name) THROWS SAXEXCEPTION

{

Currentelement.equals (name))

Table.Put (Currentelement, CurrentValue);

}

}

JSP content displays source code, SAXXML.JSP:

Analysis XML file people.xml </ title></p> <p></ HEAD></p> <p><Body></p> <p><% @ Page ErrorPage = "Errpage.JSP"</p> <p>ContentType = "text / html; charSet = GB2312"%></p> <p><% @ Page Import = "</p> <p>Java.io. * "%></p> <p><% @ Page Import = "</p> <p>Java.util.hashtable "%></p> <p><% @ page import = "org.w3c.dom. *"%></p> <p><% @ Page Import = "ORG.XML.SAX. *"%></p> <p><% @ page import = "javax.xml.parsers.saxparserfactory"%></p> <p><% @ page import = "javax.xml.parsers.saxparser"%></p> <p><% @ Page Import = "SAXHANDLER"%></p> <p><%</p> <p>File file = new file ("c: //people.xml);</p> <p>FileReader Reader = New FileReader (file);</p> <p>Parser Parser;</p> <p>SAXPARSERFACTORY SPF = saxparserfactory.newinstance ();</p> <p>SAXPARSER SP = SPF.NEWSAXPARSER (); SAXHANDLER HANDLER = New SAXHANDLER ();</p> <p>Sp.Pars (New InputSource (Reader), Handler;</p> <p>Hashtable hashtable = handler.gettable ();</p> <p>Out.println ("<Table Border = 2> <Caption> Teacher Information Table </ CAPTION>");</p> <p>Out.println ("<tr> <td> Name </ td>" "<TD>" </p> <p>HashTable.get (New String ("name") "</ td> </ tr>");</p> <p>Out.println ("<tr> <td>" </ td> " " <TD> " </p> <p>(String) HashTable.get (New String ("College")) "</ td> </ tr>");</p> <p>Out.println ("<tr> <td> phone </ td> " <td> " </p> <p>(String) HashTable.Get (New String ("Telephone")) "</ TD> </ TR>");</p> <p>Out.println ("<tr> <TD> Remarks </ TD>" "<TD>" </p> <p>(String) HashTable.Get (New String ("Notes") "</ TD> </ TR>");</p> <p>Out.println ("</ Table>");</p> <p>%></p> <p></ Body></p> <p></ Html></p> <p>EJB aspect</p> <p>1. What are the contents of EJB2.0? What are the differences in EJB2.0 and EJB1.1?</p> <p>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 .....</p> <p>2, the difference between EJB and Java Bean?</p> <p>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</p> <p>Java beans are equivalent to DCOM, namely 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 basic architecture</p> <p>A: An EJB includes three parts:</p> <p>Remote Interface interface code</p> <p>Package beans;</p> <p>Import javax.ejb.ejbobject;</p> <p>Import</p> <p>Java.rmi.RemoteException;</p> <p>Public Interface Add Extends EJBOBJECT</p> <p>{</p> <p>// Some Method Declare</p> <p>}</p> <p>HOME Interface interface code</p> <p>Package beans;</p> <p>Import</p> <p>Java.rmi.RemoteException;</p> <p>Import jaax.ejb.createException;</p> <p>Import javax.ejb.ejbhome;</p> <p>Public Interface AddHome Extends EJBHOME</p> <p>{</p> <p>// Some Method Declare</p> <p>}</p> <p>EJB class code</p> <p>Package beans;</p> <p>Import</p> <p>Java.rmi.RemoteException;</p> <p>Import javax.ejb.sessionbean;</p> <p>Import javx.ejb.sessionContext;</p> <p>Public Class Addbean Implements SessionBean</p> <p>{</p> <p>// Some Method Declare</p> <p>}</p> <p>J2EE, MVC</p> <p>1, all parts of MVC have those technologies to achieve? How to implement?</p> <p>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.</p> <p>2, the difference between application servers and web server?</p> <p>I hope everyone will make up, thank you.</p> <p>3, what is J2EE?</p> <p>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.</p> <p>4. Web service noun explanation. JSWDL development package. JAXP, JAXM explanation. SOAP, UDDI, WSDL Explanation.</p> <p>A: Web Service Description Language WSDL</p> <p>SOAP is a Simple Object Access Protocol, which is a lightweight protocol used to exchange XML encoded information.</p> <p>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.</p> <p>I hope everyone will make up, thank you.</p> <p>6, Struts application (such as Struts architecture)</p> <p>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 features:</p> <p>I. Contains a Controller Servlet that can send the user's request to the corresponding Action object.</p> <p>II.Jsp Free Tag Library and provide association support in the Controller Servlet to help developers create interactive form applications.</p> <p>3. Provide a series of practical objects: XML processing, automatically handle JavaBeans properties, international tips and messages through Java Reflection APIs.</p> <p>Design mode</p> <p>1. Use the design mode in the development? What are the occasions?</p> <p>A: Each mode describes a question 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.</p> <p>2, UML</p> <p>A: 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,</p> <p>JavaScript</p> <p>1. How do I verify digital?</p> <p>VAR RE = / ^ / d {1,8} $ | /./ D {1, 2} $ /;</p> <p>Var str = document.form1.all (i) .value;</p> <p>Var r = str.match (re);</p> <p>IF (r == null)</p> <p>{</p> <p>SIGN = -4;</p> <p>Break;</p> <p>}</p> <p>Else {</p> <p>Document.form1.all (i) .value = parsefloat (STR);</p> <p>}</p> <p>CORBA</p> <p>1. What is CORBA? What is the use?</p> <p>A: The CORBA standard is a common object request agency structure, 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:</p> <p>Written in different programming languages</p> <p>Run in different processes</p> <p>Development of different operating systems</p> <p>Linux</p> <p>1, Linux underline, explanation of the GDI class.</p> <p>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.</p> <p>The GDI class is an image device programming interface class library.</p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-120381.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="120381" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.043</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = '1cvP8qp82pwXgsI3kzNAYTnU3uRXLAXQLrPCjIpkDnPYV_2B840oHJ7NZ8Wbj8xCe8wnzOy4JTiYBSU3tIGCmGLA_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>