This article illustrates the Java implementation method to clean up DNS cache. Share to everyone for your reference. The specific analysis is as follows:
First, test environment
Os:windows7 x64
Jdk:1.6.0_45
Second, I found four ways to clean up
1. Java Memory model
The Java Virtual machine divides the memory it manages into a number of data regions as it executes the program, as shown in the following figure:
Program counter: A small area of memory that points to the currently
If you're a web developer, use your knees to know that most of your career will be spent in Java. This is a commercial level programming language, we have no way not to contact it.
For Java, there are two very different views: one is that Java is
First, when we configure the DWR3, we can test in the browser to see if our configured DWR is effective
http://localhost:[Your server port number, default does not write as 80]/[Web name]/dwr/, enter the name of the DWR script you defined earlier,
Bubble Sort: is the two elements that are contiguous by index, and if greater than/less than (depending on whether ascending or descending order is required), replace, otherwise do not make changes this round down, compares the n-1 times, n
What is reflectionReflection (Reflection) enables programs that run in the JVM to detect and modify run-time behavior. "This concept is often confused with introspection (introspection), and the following is an explanation of these two terms in
Concept:The single case pattern in Java is a common design pattern, the single example mode is divided into three kinds: the lazy type single case, the A Hungry man type single case, the registration type single example three kinds.A single case
JUnit is a regression testing framework (regression testing framework) written by Erich Gamma and Kent Beck. JUnit testing is a programmer test, a white-box test. The Project homepage: http://www.junit.org/
When using JUnit, you write test cases
The double check mode is mentioned in article 48th of the Effecitve Java book, and it is pointed out that this pattern is not normally applicable in Java. The structure of the pattern is as follows:
Public Resource getresource () {
if
This article describes the Java call to the China Weather Network API to obtain weather information. Share to everyone for your reference. The implementation method is as follows:
An example of Harbin Ice Country weather API call weather
Internal structure diagram of the JVM
Java virtual machines are mainly divided into five areas: Method area, Heap, Java stack, PC register, local method stack. BelowSee some important questions about the structure of the JVM.
1. Which areas are
The Bytearrayoutputstream class is a buffer in which a byte array is created inside the program when an instance of it is created. The byte data is then written to or read out of the array using instances of Bytearrayoutputstream and
One: Why should we talk about the abnormal capture of multithreading alone?
Let's take a look at an example:
The public class ThreadException implements runnable{@Override the public
Void Run () {
throw new RuntimeException ( );
}
Problem Description:
Input: two dates
Output: Two days of difference between dates
Specific code implementation
Method 1:
Compare by date of calendar class. Note: Here you need to consider:
Dates are trans-year, like one is 2012, one is 2
(1). Interface types related to reflection + generics
Common parent interfaces for all types in the Java.lang.reflect.Type:java languageJava.lang.reflect.ParameterizedTypeJava.lang.reflect.GenericArrayTypeJava.lang.reflect.WildcardType
1. Type
Map Summary (HASHMAP, Hashtable, TreeMap, Weakhashmap and other usage scenarios)
After we've learned all about map, we'll go back and open the map frame.
The 1th part of map generalization
The map is an abstract interface to the "key-value pair"
Java.applet provides classes and applets that are required to create applets to communicate with their applet contexts.java.awt contains all the classes used to create the user interface and draw graphics images.The Java.awt.color provides classes
In fact, ERP describes the management of an enterprise as a whole of all resources. ERP is to help you control the operation of the entire enterprise. So what kind of business is it? For example, to help the light media. ERP more is used in the
Reference blog:Java transient keywords"Java's serialization provides a mechanism for persisting object instances. When persisting an object, there may be a special object data member, and we do not want to use the serialization mechanism to save it.
NullPointerException org. apache. commons. digester. Digester. getXMLReader (Digester. java: 1058), father of java
Http://pwu-developer.blogspot.com/2010/01/nullpointerexception.html
MavenIs great build tool making it easy to fetch all the library
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