Original address: http://strong-life-126-com.iteye.com/blog/806246Look at the previous notes, see a special Java file: Pacakge-info.java, although there are records, but not all, try to track down the problem, share the results of
Traversing the list in Java will use the Java-provided Iterator, Iterator is very useful, because:An iterator is a design pattern that is an object that can traverse and select objects in a sequence, and the developer does not need to know the
Java 5 introduced the Concurrent concurrency package inside the Countdownlatch can actually think of it as a counter, but the operation of this counter is atomic operation, while only one thread to operate the counter, That is, you can only have one
IntentionAdd some extra responsibilities to an object dynamically. For added functionality, the decorator mode is more flexible than generating subclasses.The source class is a decorated class, and the decorator class is a decorative class that can
1. Program Running ProcessA. Sequential structure: If there is no process control in the code, the program is supreme and the next line is executed, and the next statement executes after a statement is executed until the end of the program.B.
Http://www.cnblogs.com/xrq730/p/4833713.htmlHeap OverflowThe only purpose of the Java heap is to store object instances, so long as the objects are created and objects are not recycled, the number of objects reaches the maximum heap capacity limit,
Comment What is a comment?A note is a piece of code, a method, or a class that is written in the code so that you can read the code easily. The annotated content will not be compiled or executed .Java annotations are divided into three types: single-
PrefaceWe know that in Java the object is initialized with a constructor, but in Java, like the constructor, there are initialization block operations, the following small part to share for you.Initialize block usingThe initialization block in Java
An operator is a special symbol that represents the operation, assignment, and comparison of data. Operators are divided into arithmetic operators, assignment operators, comparison operators, logical operators, and shift operators.First, arithmetic
The problem of synchronization is put forward
Suppose we use a dual-core processor to execute a and b two threads, the kernel 1 executes a thread, and the kernel 2 executes the B thread, and the two threads now have to add 1 to the member
first, let's take a look at what the system does when we execute Javac and java with commands, and if we now have a folder like 1 , there are two Java files. Figure 1: File directoryamong them, the content of Main.java is very simple:public class
1.Properties class and properties configuration fileThe properties class inherits from the Hashtable class and implements the map interface, and it also holds the property set in the form of a key-value pair. However, the properties have a special
Java standard tag Library (JSTL)JSTL (Java Standard Tag Library)-Java Standard Tag LibraryJSTL composition:JSTL-Core tag library. -This is the focus of this part.JSTL-I18N-International tag library. Internationalization-I18NJSTL-SQL-database
Java-10.3 custom exception types
In this section, we will briefly discuss the custom exception types.
Generally, the exception types defined in java are enough for us to use. However, we need other custom types in actual operations.
In the exception
(Spring-9th back [IoC Basics]) BeanFactoryPostProcessor, the second best tool before Bean instantiation, beanfactory. getbean
The inheritance structure is shown above. BeanFactoryPostProcessor is used when loading XML, registering bean definition,
Why Internal classes are required for java-8.11 from the beginning?
In this chapter, we will discuss why Internal classes are needed?
Answer: It facilitates multi-inheritance.
There are two methods to implement multi-inheritance: Internal classes
Source code analysis: Memory Allocation of Java objects (1)
Java objects are allocated in two ways: Fast allocation and slow allocation. The lock-free pointer collision technology is used to distribute the objects in the new generation Eden zone,
Common java programming technologies, java programming
I. Put the String at the beginning to prevent NullPointerException. We usually place the String on the left side of the equals Method for comparison, which can effectively avoid
Null Pointer
Dark Horse programmer Series 1 multi-thread (-), dark horse programmer
ASP. Net + Android + IOS development and Net training. We look forward to communicating with you!
(This article is based on the course video of teacher Bi Xiangdong, if you
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