Performance Optimization Summary: a task frequently operates databases and sends a large number of messages. Long time!
0. Socket exception. Errors occur when a large amount of data is transmitted in RMI calls, and the system processes data
There are too few documents about this bird thing. errors are often reported during multithreading. errors may be reported during sending and receiving. No errors are reported on others' computers, and errors are prone to errors on my computer. In
Final MethodThere are two reasons to declare the method as final. The first is that you know that the function provided by this method has met your requirements and does not need to be extended, this method cannot be overwritten by any class
Unlike python, Java learned this time because of work needs.
My current project is http://www.browsercam.com (it's slow to visit this site from me these days and I don't know why .), there are two main product functions: 1. you can use browsers of
From: http://www.yesky.com/SoftChannel/72342371961929728/20041014/1864192.shtml
Current developmentCommunityThe AOP (Aspect oriented programing) has been promoted, and a large number of excellent frameworks that support AOP have emerged, such as
Case:
Package Com. Devin; Public Class Mymain { Public Static Void Main (string ARGs []) {Father F = New Son ();}} Class Father { Public Father (){System. Out. println ("Father construct ");} Static Int A = printfahter (); Static Int
1. Concept: DefineAlgorithmAnd delay some implementation steps to the subclass.
Move the unchanged behavior to the superclass to remove duplicates in the subclass.CodeTo reflect his advantages.
2. UML diagram:
3. Code:
Public abstract
1. For classes that do not need to be derived clearly, add the final modifier. In this case, all the methods of this class are final. The Java compiler looks for opportunities to inline all final methods. (Improves performance by 50%)2. Try to reuse
1. Concept: convert an interface into another interface that the customer wants. (This mode allows incompatible classes to work together)
2. UML diagram
(1)ObjectAdapterSchema Structure
(2)ClassAdapterSchema Structure
3.Code
[This site is released on the secondary site: www.blogjava.net/pragmatic 〕
The majority of principles in this book stem from a few basic principles.
1. clarity and profile are the most important: users of a module should never be confused by the
Configure the JDK Environment
Download
LoginOracleTo downloadJdk7
Http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Okay! Before downloading, select"Accept license agreement"Then, we can
The difference between the requestdispatcher. Forward () method and httpservletresponse. sendredirect () method is:
Requestdispatcher. Forward () is only the redirection of control in the container. The redirection address is not displayed in the
1. Feel the power of myeclipse. You only need to right-click to add the hibernate function for the project to quickly apply hibernate.
2. Remember to add the corresponding package name if you want to modify the object name when generating an
1. Concept
Defines a one-to-many dependency. When the status of an object changes, all objects dependent on it are notified and automatically updated.
2. UML diagram
3.Code
Interface Subject{ Public Void Attach (Observer observer );
Introduction
HTTP (Hypertext Transfer Protocol) is a stateless, application-layer protocol based on request and response modes. It is often based on TCP connections. The main features of HTTP are:1. Supports the customer/Server mode.2. simple and
Framework of Java 2 sets
Set interface: Six interfaces (short dotted line), indicating different set types, is the basis of the set framework.
Abstract class: Five abstract classes (long dotted line) are used to implement part of the set
It turns out that tiger already comes with this thread pool, that is, when the number of tasks exceeds the limit, the thread that can block the tasks to be placed is mainly used for JMS message listening.
Start:In threadpoolexcecutor, new
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