There are 4 types of references in Java: Strongreference, SoftReference, WeakReference, and Phantomreference (the legendary Ghost quotes hehe),These 4 types of references are closely related to GC, so let's look at their definitions and usage
ArrayList is an implementation class of the list interface in the Java collection framework.
It can be said that ArrayList is the List collection we use most, it has the following characteristics:
Capacity is not fixed, how much you want to put
Java Get File size
Today, when writing code to achieve the function of getting file size, there are two implementations, one is using the length () method of file, and the other is using the FileInputStream available () method, when InputStream
1.start () method to start a thread, which really implements multithreading, without waiting for the Run method body code to complete and proceed directly to the following code:
Start a thread by invoking the start () method of the thread
1. What is a blocking queue?
A blocking queue (Blockingqueue) is a queue that supports two additional operations. The two additional actions are that when the queue is empty, the thread that gets the element waits for the queue to become non-null.
The example of this article for everyone to share the Java strategy model for your reference, the specific contents are as follows
1, the Strategic model (strategy pattern) is a relatively simple model, also known as the Policy Model (Policypattern)
One, memory overflow type1, Java.lang.OutOfMemoryError:PermGen Space
The JVM manages two types of memory, heaps, and not heaps. The heap is for developers, it is created when the JVM is started, and not the heap is left to the JVM itself to hold the
XML has now become a general Data Interchange format, its platform independent, language-independent, system-independent, which brings great convenience to data integration and interaction. For the syntax knowledge and technical details of the XML
The validity of the Java ID Card check and obtain the ID number valid information for your reference, the specific contents are as follows
Verification of the validity of Java ID card
/** ID card before 6 "ABCDEF" for the administrative
One, set mapping
1. Collection of small mediaset mapping is also a basic mapping, but not often used in the development process, so do not need a deep understanding, only need to understand the basic methods of use, etc. in the development process
In order to facilitate their own later review, so write more carefully, record their growth.Since it is a shopping cart, then the prerequisite is to first need a series of goods, that is, to build an entity, here built a commodity table,
Display
JVM Learning notes the JVM memory management and the concept of JVM garbage collection, the JVM memory structure consists of heaps, stacks, local method stacks, method area, and so on, and the JVM used different garbage collection mechanism for the
MyBatis contains a very powerful query caching feature that can be easily configured and customized. By default, the cache is not turned on, and to turn on level two caching, you need to add a line to your SQL map file:
This is
Java Processing IP tool classes, including the long type of IP to the general IP type, the xx.xx.xx.xx type to a long type, based on the mask bit to get the mask, based on the ip/mask to compute the IP segment of the start IP, based on the ip/mask
This article describes the Java implementation based on histogram application of similar image recognition, is a very practical skill. Share to everyone for your reference. The specific analysis is as follows:
An overview of the algorithm:
Firstly,
We must first remember the characteristics of the three:
String string Constants
StringBuffer string variable (thread safe)
StringBuilder string variable (not thread safe)
I. DefinitionThe View API finds that the Charsequence
First, what is MAVEN?
MAVEN is a Java-developed project building tool that automates the compilation, testing, publishing, and documentation of the project's build process, greatly reducing the burden of programmer deployment.
Second, install
Code Refactoring6 Major principles:Single principle of responsibility (a class should preferably have only one behavioral motive, too much responsibility can lead to too high coupling),Open closure principle (functions can be extended, but cannot be
without permission, no reprint 1, JDK download and configuration 1.1 downloadssudo wget http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz? Authparam=1432864690_d8334d64fa2a7f2048c38f7dd3180fe01.2
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