Release of locks-acquisition of established happens before relationships
Lock is the most important synchronization mechanism in Java concurrent programming. The lock, in addition to allowing the critical area to be mutually exclusive, allows the
Introduction: This paper introduces the Java Rule Engine and its API (JSR-94) and related implementation in detail, describes its architecture and API application, and points out the relationship between Java Rules Engine, rule language, JSR-94, and
4.1 Metaphor for development of Java EE
Make an analogy.
Now the development of Java-EE, just like the opposite of a person.
The outermost wear a windbreaker (HTML)
Wearing a suit in a windbreaker (Struts)
Wearing a vest in a suit (Spring)
Before we can put a bean into a visual build tool that activates the bean, it must be placed in the standard bean container, which contains the Bean class and a jar (Java Archive,java file) file that represents the manifest file "This is a bean."
What is the serialization of Javais to save an object to a file, can be transferred through the stream, you can read the contents of the file into an object, serialization is to solve the object flow in the time of the read and write operations
1. Static memoryStatic memory is the memory allocated by the compiler when the program starts running, and its allocation is done at the beginning of the program's compilation, without consuming CPU resources.A variety of variables in the program,
1. Common algorithms:A. Reference counting method: Configure an shaping counter for each object, when there is a reference, counter +1, when the reference fails, counter-1. Counter 0 for garbage collectionProblem: A object reference b,b object
java Four kinds of references, soft and weak, used to the sceneTags: java reference weak soft virtual2016-05-11 22:59 1237 people read comments (0) favorite reports 1. Strong citation (Strongreference)Strong references are the most commonly used
synchronization container (not thread-safe for iterative read and write under concurrency)
Vector, Stack, HashTable
Classes created by static factory methods of the collections class (such as Collections.synchronizedlist)
p264~p267:1. errors may occur in the program: User input error, device error, physical limit error, code error2. If some operations are not completed due to an error, the program should : return a security state and be able to allow the user to
Abstract class:principles of abstract class adherence:(1) The abstract keyword can only be decorated with classes and methods and cannot be decorated with fields. (2) An abstract class cannot be instantiated (an instance of an object cannot be
Don't say much nonsense, first come to the program. Step by step look at the notes,
The first thing to note is that when using the dichotomy, the array must be ordered, that is, from large to small, or from smallest to largest, and cannot be
Scenarios for virtual machine termination
Artificial
Manually forced System.exit (int), you can take a look at this article http://blog.csdn.net/xw13106209/article/details/6122517
Program
The program terminated
Identifier:1. Identifiers can consist of letters, numbers, underscores (_), dollar symbols ($), but cannot contain other special characters, such as @,%, space, etc., and cannot begin with a number.2. Identifiers cannot be Java keywords and reserved
Synchronization container prior to JDK 1.5Before the JDK 1.5 , the main include:
Synchronizing containers ( Vector and Hashtable )
Synchronous wrapper class ( Collections.synchronizedXxx )
The common feature of these classes is
I. Java naming conventions
Class name: For all classes, the first letter of the class name should be capitalized. If the class name consists of several words, the first letter of each word should be capitalized, such as Myfirstjavaclass.
Java Message Mechanism ActiveMQ entry instance, javaactivemq
1. Download ActiveMQGo to the official website download: http://activemq.apache.org/I downloaded ActiveMQ 5.8.0 Release.2. Run ActiveMQUncompress apache-activemq-5.8.0-bin.zip, and
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