Well, the development of the work has been more than three years, it is really ashamed to say that their knowledge tree is like a grass, work in the use of a lot of knowledge and technology, but the system is not enough, the foundation is not strong,
Proxy mode:Using an environment that cannot directly use object A (a delegate object), you can use object B (the proxy object) to call object A that has reached the effect of calling object a directly, and becomes the proxy mode.Where a is the
*0-Generic designA) generics are just a constraint at the source level (. java) at the bytecode level (. Class) that constrains the "erase"b) very similar to code for multiple DAOc) Write a Basedao class that allows the specific class to extend its
Encoding present in I/O operationWe know that the place where the coding is involved is usually in the character to byte or byte-to-character conversion, while the scenario that requires this conversion is primarily in the I/O, this I/O includes
This period of time is interested in reviewing the implementation of design patterns in Java, and happened to see a good design pattern summary, here cited as a reference.
Create Model:
Java Design Pattern-singleton
Java Design
The procedure is as follows:Class ThreadDemo1 implements runnable{//implements Runnable interface private string name;private int time;public ThreadDemo1 (String name , int time) {this.name=name;this.time=time;} public void Run () {//Overwrite the
Transferred from: http://blog.csdn.net/chinapi_hzh/article/details/5798689Because Microsoft does not expose word source code, so directly with the Java stream to read Word's consequences is read out is all garbled. So you have to pass Jacob, the
The code is as followspackage com.util;import java.awt.borderlayout;import java.awt.color;import java.awt.dimension;import java.awt.graphics;import java.awt.graphics2d;import java.awt.gridlayout;import java.awt.image;import java.awt.toolkit;import
All we've talked about is just a goal. That is, a thread-safe object can be published correctly.One: Thread closureWell, that's a good idea. If a variable is a state change done in a thread, then this variable is certainly thread-safe.We often use
plan to complete this note in the following order, for example:
Java Program Ape's JavaScript Learning notes (concept)
Java Program Ape's JavaScript Learning notes (2--property copy and inheritance)
Java Program Ape's JavaScript Learning
* Second, how to deal with exception anomalies* Java provides a catch-and-throw model of exception handling* *. " Throw ": When we execute the code, when an exception occurs, an object of the corresponding exception type is generated at the code of
In some cases, the object of a class is limited and fixed, such as the season class, it has only 4 objects: Spring, summer, autumn, winter. This example of a finite and fixed class, in Java, is called an enumeration class.1 Manually implementing an
* Method of variable number of formal parameters:* 1. Format: For method parameters: Data Type ... Formal parameter name* 2. The method of a variable number of parameters forms an overload between the method with the same name* 3. Variable number of
SimpleDateFormatIn JavaVery common and used to format date to string and parse string into date in Java but it can cause very subtle and hard to Debug issues if not used carefully because DateFormat and SimpleDateFormat both is not thread-safe and
Echarts-java Class Library Address: Http://git.oschina.net/free/EChartsBaidu Echarts Address: http://echarts.baidu.com/About 5 months ago , there is a project need to use the chart, Baidu Echarts is very good, the choice of echarts.My project is
A HashSet Source CodeThe realization of HashSetFor HashSet, it is based on HASHMAP implementation, HashSet the bottom of the HashMap to save all the elements, so HashSet implementation is relatively simple, view HashSet source code, you can see the
On the SSH framework-a Leo programmer !, SshOn the SSH framework-a Leo programmer! In-depth comparison between SSH and Leopard
I remember many years ago, in the world of Java Web development, the SSH (Struts, Spring, Hibernate,) framework was very
List-specific iterator-Special Functions of ListIterator, list iterator
/***List iterator: * ListIterator listIterator (): List set unique iterator* This Iterator inherits the Iterator, so you can directly use the hasNext () and next ()
[SSO single-point series] (6): CAS4.0 single-point process Sequence Diagram (Chinese version) and related terminology (TGT, ST, PGT, PT, PGTIOU), tgtpgt
CAS-related content has not been written for a long time. It may be updated next week.
Since
Java design patterns ------- factory patterns
Java design patterns -------- factory patterns
Classification and Definition 1) Simple Factory: Also known as the Static Factory Method mode, which belongs to the class creation mode. In simple
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