Policy patterns in JavaI. OverviewSecond, through the base class to implement the policy modelThird, through the interface to implement the policy modelIv. SummaryI. OverviewThe so-called strategy pattern is that when a behavior has multiple
Original: http://www.cnblogs.com/skywang12345/p/3479083.htmlDescription of the difference between start () and run ()Start (): Its role is to start a new thread, and the new thread executes the corresponding run () method. Start () cannot be called
Proxy pattern: When an object does not want or cannot directly reference another object, the proxy object can act as an intermediary between the client and the target object. Static proxy is specific to implement the need for proxy object interface,
In the request header of the HTTP protocol, get the resource to access, find the Web. XML file to find the corresponding serveletthe life cycle of SevletServletwhen first accessed, the server creates aServletobject that will be called directly after
In this article, the socket in Java can be divided into ordinary sockets and niosocket two kinds. How to use a common socketThe network communication in Java is realized through socket, socket is divided into serversocket and socket, ServerSocket is
1.NullPointerExceptin NULL pointer exceptionA. References are used without initializationB. The reference is empty and is still in use2.IndexOutofBoundsException Subscript out of boundsA. The array subscript is less than 0 or greater than the array.
Multi-threaded synchronizationWhy to introduce a synchronization mechanismIn a multithreaded environment, there could be two or more threads trying to access a limited resource at the same time. This potential resource conflict must be
The Map Collection features: The Set stores key-value pairs, a pair of pairs in the memory, and the keys are unique. Features: To ensure the uniqueness of the keys in the map set. Map:hashtable Bottom is a hash table data structure, can not be
Set set: Elements are ordered, element values are unique, and duplicates are not allowed.HashSet: The underlying data structure hash table, is the element's hashcode and equals to ensure the uniqueness of the element.If the hashcode value of the
Classes or interfaces related to Java stream operations:Java Flow class diagram structure:concept and function of flowA stream is a set of sequences of bytes that have a starting point and an end point, a generic or abstract of the data transfer.
♥ Job 1:Displays all files for the specified path and implements file filtering. Intelligent monitoring, the program can automatically generate all the suffix of the file under any path in the drop-down menu . in-code note content as a step and a
Java Collection, java Collection class details
Collection
Collection is an interface that allows a set to contain duplicate elements or prohibit repeated elements. You can force or limit the order. The following describes some common basic methods
Chapter 2 EncapsulationObject-oriented features: encapsulation, inheritance, and Polymorphism 2-1 What is Java encapsulation?★ConceptHiding some information of a class inside the class, Does not allow external programs to access directly, but
Java Collection framework 07-Map architecture and source code analysis
In the previous sections, we analyzed the Collection and the List part in the Collection, and there is a Set in the Collection. Since the Set is implemented based on Map, we will
Mybatis Project Summary
1. What is mybatis?
MyBatis is an excellent persistent layer framework that supports common SQL queries, stored procedures, and advanced mappings.
Ii. Roles of mybatis
MyBatis eliminates the manual settings of almost all
Big talk Design Pattern 1: first understanding the five basic principles of design pattern and Design Pattern1. What is the design model?
Design pattern is a set of summary of code Design experiences that are repeatedly used, known to most people,
Jvm class loading mechanism
The life cycle of a class is shown in the following figure. Note that this is only the starting sequence of each stage. It is not a stage that can be started until the execution of the previous stage is complete.
Struts2 data presentationStruts2 data presentationI. OGNLWhat is GONL?Object Graph Navigation Language is a powerful expression Language, similar to EL.Struts2 uses the OGNL expression to access Action data by default, and uses the encapsulated OGNL
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