This article comes from: Cao Shenhuan blog column. Reprint please indicate the source:http://blog.csdn.net/csh624366188
In the last blog, we saw the specific implementation of the interceptor principle, and looked at the source (Details Struts2
Java memory leaks
Remember the last interview to XX company, an interviewer asked me if there is memory leak in Java, I said there, but then I suddenly Leng, the interviewer immediately to correct me, Java is no memory leaks, I do not dare to
Use DLX algorithm to number single game.
Beginners Java, the algorithm code is converted by C code.
Dlx.java is an algorithm class, Sudoku.java is an interface class.
The solution is known as the most difficult sudoku in the world within 10ms.
Java (Jfreechart) Implementation of a variety of data statistics (column chart, pie chart, line chart) "Original address: http://blog.csdn.net/pzhtpf/article/details/7600100"
Recently in the course of data mining design, need to analyze the results
The Java comparator has two classes, namely the comparable interface and the comparator interface.
When sorting an array of objects , the comparator works very clearly, first of all, to explain the comparable interface.
Let the object that needs to
Tostringpublic string toString () returns a string representation of the object. Typically, the ToString method returns a string that represents this object in text format. The result should be a concise but easy to read. It is recommended that all
the load-balancing architecture will be built as follows
Engineering descriptionSpring-cloud-02-ribbon-retry Analog customer service, request services, resttemplate+loadbalanced to achieve load balancing
Spring-cloud-02-ribbon-eureka as service
The collection package is the most commonly used package in Java, and it is most commonly used with implementation classes for collection and map two interfaces, where collection is used to hold multiple single objects, and map is used to store
Recently, a Full-duplex asynchronous long connection communication component was developed in the project development, and the delay queue was used internally. and the delay queue of the internal implementation of storage is used to the priority
Today in the project encountered through the Web upload files to the file system, Chinese file name garbled, step-by-step to troubleshoot the HTTP communication process of the codec (through Utf-8) did not find the problem. The default character set
Java memory area and memory overflow exception
1. Overview (Why do you want to know how virtual machines use memory?) )2. Runtime data region (how the memory in the virtual machine is divided.) )3. HotSpot Virtual Machine Object Quest (HotSpot
The most recent project used MQ, which had been divert like a farmer. In the last few days, I've looked at all the documents and the information I've seen. I. Understanding JMS 1. Overview
For JMS, the Baidu Encyclopedia is introduced: the JMS, Java
The Java Virtual machine is divided into five areas, of which three are thread-private: program counters, virtual machine stacks, local method stacks , two threads sharing: heap, method area . The thread-private area is automatically freed when the
Summary thread pool Working principle construction method Survival time KeepAliveTime surviving time Unit uunit task Queue Workqueue thread factory Threadfactory deny policy handler the basic process of a task execution submit a task to the thread
Java right to do string encoding conversion
The internal representation of the string.
Strings are uniformly represented in Unicode (that is, utf-16 LE) in Java.
For String s = "Hello Oh!";
If the source file is GBK encoded and the operating system (
Precautions before use:1, due to the Java object-oriented programming characteristics, in naming should try to select the noun2. Hump nomenclature (Camel-case): When a variable name or function name is a unique identifying word that is composed of
When using MyBatis, the most headache is to write a page, you need to write a query count of the SELECT statement, and then write a real paging query, when the query condition is more, will find that really do not want to spend double time to write
This part of the content excerpt from Https://www.cnblogs.com/dolphin0520/p/3919839.html, added to their own understanding; I. Single RESPONSIBILITY principleOriginal link: http://blog.csdn.net/lovelion/article/details/7536542The single
What are the two data types of Java?Data types in Java fall into two main categories: value types (base data types) and reference types (composite data types)One: Value type:Integer type (byte,short,int,long) floating-point type (float,double)
In the first section, we have successfully opened the page, but the automated test necessarily contains the form's fill-in and button clicks. So in the second chapter I take the blog garden as an example, complete the button click, Form Fillor
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