Related article links
design mode and technology of Java EEHttp://dev.csdn.net/develop/article/18/18796.shtm
Application of design patterns in EJB speciesHttp://www.chinabyte.com/20030423/1665171.shtml
Implementation and comparison of several
In the development process, we often encounter reading the configuration file, for the configuration file read, depending on the circumstances, and so on, under normal circumstances, if the use of the relative/path from the jar package, relatively
1,volatile
The variable it modifies does not retain a copy and accesses directly in the main memory.
In the Java memory model, there is main memory, and each thread has its own memory (for example, registers). For performance, a thread keeps a copy
Basic Concepts
Tree
In addition to the root node, each node has only one parent node, and the root node does not have a parent node. In addition to leaf nodes, all nodes have one or more nodes, and leaf nodes do not have child nodes. The parent
In Java application development, it is often necessary to read a configuration file to obtain system parameters or configuration information. Profiles can be used in XML format files, and in Java. properties files are used specifically as
Before you understand the displacements , understand the binary representations and relationships of positive and negative numbers:Examples 15 and-15:
15 Original code: 00000000 00000000 00000000 00001111Complement: 11111111 11111111 11111111 1111000
Recently in the company to do the work of reptiles, contact is a bit more, there is a business needs to filter out all the special characters in the string, research, and finally to achieve.
Package com.xx.filter;
Import Java.util.regex.Matcher;
Recently, the company project needs to split a large file into several small files for processing, after processing, all the small files are merged into one file.
Sample code
Package com.xx.test;
Import Java.io.File;
Import Java.io.FileInputStream;
A recent app to use cloud storage, compared to a few cloud space, finally chose Bmob (http://www.bmob.cn/), Bmob features a lot, but also provides a variety of APIs, free.
Because my app is small and business is simple, the rest API provided
The last article talked about how to build a Zookeeper+dubbo platform, but the ultimate goal of the platform is to apply in the project, next I will say how to apply in Java code.
Dubbo, as an RPC management tool, is used to manage the situation of
The creation pattern includes:
Factory approach Mode: Provides a simple decision class that generates products based on conditions.
Abstract Factory Pattern: Provides an interface to create and return a range of products.
Singleton mode: A class can
1. Socket communication in Java
A, blocking waiting
In Java socket communication and IO communication, blocking wait is a very important concept. When a program executes to block program code, such as Serversocket.accept (), Inputstream.read (), it
1. Annotations affecting the life cycle of the servlet: @PostConstruct and @predestroy@PostConstruct: The modified method runs when the server loads the servlet and is only called once by the server, similar to the init () method of the servlet.
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