New Oriental study Note 2

Source: Internet
Author: User
(172)
Struts:
1. The process is very clear. (Relationship between core group keys) information written in XML by actionservlet, requestprocess, action, actionform, and configmodle is stored in the configuration object.
2. configuration file. Hand-written configuration file (actionmapping, actionform, cross-piece)
3. Struts works in the C/V layer. Basic action programming (handwritten ).
4. (1) page Jump in action. (2) reflection mechanism in struts.
5. actionform: the dynamic actionform must be configured on its own.
6. Form Verification.
7. Form slave use. Call reset.
8. Internationalization of resource files. Format and Encoding Problems
9. Tag. HTML, Bean, logic
Link. File Upload in 10.html.
11.html and HTML: form.
12. How to load your own files.
13. Use of log4j. Load the configuration file first.
(173)
DOM: Abbreviation of Document Object Model
Tree-based Data Storage
(174)
JSP, Servlet, and struts are the key.
UML relationships are important.
(175)
Implement pagination using entity beans.
(176)
Rownum in Oracle is generated after sorting.
Rownum starts from 1.
(177)
MySQL limit is used to specify the query.
(178)
ORACLE:
1. Write complex functions.
Internal and external connections, left and right connections. Order by, group by, subquery, and add function. Table creation and row-level creation constraints.
Table-level constraints and row-level constraints are used. It is best to use table-level constraints.
How to delete a primary table from a table.
Create a tablespace. Add a data file.
Basic query.
2. Trigger, stored procedure.
Basic stored procedures of PL/SQL.
3. Use built-in functions. (Todate ....)
4. database design. Three generics.
(179)
Web Service:
Saop: Simple Object Access Protocol. It is mainly used for communication. Data transmission protocol.
WSDL: Language Specification. Written in XML. Describes how a Web Service is called.
UDDI:
(180)
Web Service:
Install axis to Tomcat's webapps and start Tomcat.
Http: // localhost: 8080/axis
Create a file someclass. JWS // WSDL under Axis to describe how a method is called.
Write a class in JBuilder.

//////
Someclass. JWS
Public class someclass {
Public someclass (){}
Public String F (string name ){
Return "hi," + name;
}
}
Category:
Public static void main (string [] ARGs) throws exception {
Testservice = new testservice ();
Service = new service ();
String endpoint = "http: // localhost: 8080/axis/someclass. JWS ";
Call call = (CALL) service. createcall ();
Call. settargetendpointaddress (new URL (endpoint ));
Call. setoperationname ("F ");
Object result = call. Invoke (new object [] {"Who am I "});
System. Out. println (result );
}
// OK !!
(180)
Use JBuilder for web service.
/////
Public class someclass {
Public someclass (){}
Public String F (string name ){
Return "hi," + name;
}
}

Soap is implemented on the HTTP protocol.

Java-based Web Services
Mai zhongfan
(181)
How can I load a class at Tomcat startup?
//
(182)
Thread synchronization problems?
If the variable is an integer, do you need to do synchronized?
Generally, this is not required. The Int operation is an atomic operation. But it actually needs to be added. Synchronized has two meanings. One is to avoid modifying the same object at the same time. The other is the change of the int value. If the int value is not added to the object, no notification will be sent after the value is changed.
(183)
Synchronized: It means locking. When an object enters the method, other objects cannot enter.

(184)
Class test {
Private arraylist list;
Public void F (){}

}
(185)
Fast code synchronization. For example

Arraylist list = new arraylist ();
Synchronized (list ){
//...
}
// Synchronize the list
(186)
JMS: Java Message Service.
How to create a message to be sent. Sending is in XML format.
Write the message-driven bean.
(187)
Sessionbean, entitybean.
Sessionbean: category. Stateful or stateless. Remote Call: local call.
Entitybean: encapsulate database operations.
Auto-increment of the primary key.
(188)
From a certain point of view, it is called a view.
Do different things in different views.
Class diagram: A class diagram. It mainly describes the static relationship between classes and interfaces. Or structural relationship.
(189)
How to draw:
Public calss {
C = new C (); // associate
}

Public calss {
Void F (C) {// dependency
}
}
(190)
Sequence (sequence diagram): dynamic relationship. It can represent various time series relationships.
Sometimes (in a specific scenario.
Usage: indicates
(191)
Class digoal
Sequence digoal
Statechart Diagram

Activity digoal
Use Case digoal
Collaboration digoal

(192)
What knowledge should a Java programmer possess.
The original code is used to review the materials.
Proficient in struts, JSP core technology, Tomcat application development, Java and Mode
Proficient in hibernate (for understanding)
Java BASICS (Java recipes, Java core mode (not to mention swing ))
(193)
1. Java language basics.
(1) Object-oriented. [Pay attention to some details]
(2) reflection. [Class, method, field]
(3) exception mechanism. [1 what to write 2try, catch, and finally 3 Exception Handling principles in the Catch Block]
(4) JVM.
(5) Common commands in Java. [Java, javac, jar, javadoc]
(6) thread [requires some threads. 1. How to stop the thread? 2interupt: Wake up exceptions?]
(7) API. [Lang, util, Io, text] and encryption and decryption
The listener must be multi-threaded.
In a chat room, one is responsible for receiving and the other is responsible for displaying.
The daemon thread is a service thread. If the VM finds that the current thread is a daemon thread, the thread is stopped. The question thread and the recording thread should be the guardian thread.
2. J2EE specifications.
(1) JDBC. [Key points]
(2) JSP and servlet. [Principle] sun weiqin's book and jstl
(3) JNDI. [Lookup, find]
(4) JMS. [Message listener, message browsing, transaction processing]
(5) XML. [Basic rules, schema]
(6) EJB. [Sessionbean, stateful, stateless, etc. ..]
]
Configure the Tomcat connection pool.
WebLogic
Configure the connection pool, Message Server, and publish EJB.
Exclpice is configured with JDK under WebLogic
4. Open-source main component
Struts, JUnit, log4j, Castor, Hibernate
5. Design Mode
Three factory modes: Single-Column mode, builder mode [built ],
Decoration mode, merging mode,
MVC, observer, and facade

Mode UML, for example.

(194)
Do not forget to add Fina for initialization. To increase efficiency.
(195)
The builder process and implementation are separated.
(196)
Software Engineering:
Focus: UML diagram and sequence diagram. Call a method to draw a sequence chart.
(197)
Waterfall Model, iterative incremental.
Software lifecycle. [Pup]
What is white box testing. Black box testing. Regression testing. Integration testing.
(198)
Test?
Unit Testing, integration testing, stress testing, and functional testing.
(199)
The "path to software engineering practitioners" teacher said yes, but he was very honest. Haha ....
(200)
What do you think of our interview questions?
(201)
CVS:
It is mainly used for version control.
The software development process is an iterative incremental process. Version Control needs to manage changes.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.