Tomcat throws an error when the Mobile client submits an HTTP request to the server:December 31, 2014 2:32:45 pm Org.apache.coyote.http11.AbstractHttp11Processor ProcessInfo: Error parsing HTTP Request HeaderNote:further occurrences of HTTP header
1. What is a blocking queue?The blocking queue (Blockingqueue) is a queue that supports two additional operations. The two additional operations are: When the queue is empty, the thread that gets the element waits for the queue to become non-empty.
1 The difference between String,stringbuffer and StringBuilder??String literal constantStringBuffer string variable (thread safe)StringBuilder string variable (non-thread safe)Briefly, the main performance difference between the string type and the
Javac is not an internal or external commandInstalling JDK version jdk-8u111-windows-x64 (jdk1.8.0_111)Configure the Environment:Java_homed:\xiazai\java\jdk1.8.0_111;d:\xiazai\java\jre1.8.0_111 (Installation path for JDK and
I. Get the current system time and date and format the output:Import Java.util.Date;Import Java.text.SimpleDateFormat;public class Nowstring {public static void Main (string[] args) {SimpleDateFormat df = new SimpleDateFormat ("Yyyy-mm-dd HH:mm:ss");
(1) The Replace () method replaces all occurrences of the OldChar character in the string with the Newchar character and returns the new replaced string.Public String replace (char OldChar, char Newchar)(2) The ReplaceAll () method replaces the
The appearance pattern is to solve the dependency of class and class, like spring, the relationship between classes and classes can be configured into the configuration file, and the appearance pattern is to put their relationship in a facade class,
Concept:Inheritance is the child class inherits the characteristics and behavior of the parent class, so that the subclass object (instance) has the parent class's instance domain and method, or the subclass inherits the method from the parent class,
AbstractAbstract class: Do not know what is the specific type of things. Abstract class name1. Abstract classes cannot be directly new.2. Abstract classes can have no abstract methods.3. In an abstract class, there can be abstract methods or
Floating-point values do not apply to financial calculations that prohibit rounding errors. For example, command System.out.println (2.0-1.1) will print 0.8999999999999999999999999 instead of 0.9 as people think. The main reason is that the floating-
Abstract classes are used less in Java, and Java translates abstract classes into interfaces. Abstract class from the point of view of the code is to ask others to implement the method also has its own method of implementation. Abstract classes are
//gets the number of days between two dates private int daysbetween (date now, date returndate) {Calendar Cnow = calendar.getinstance (); Calendar creturndate = Calendar.getinstance (); Cnow.settime (now); Creturndate.settime (returndate);
Using flag bits to control loopsThe usual techniques for controlling loops are mentioned earlier: counter-controlled loops. Another common technique for controlling loops is to assign a special value when reading and processing the value of a
We've learned about the collection framework before, and we'll look at the map schema. In front of us, we talked about the list combination in Conllection, not the set set in collection,Because the set implementation classes in the collection
Multi-thread conditional access tool -- AbstractQueuedSynchronizer and synchronizer
This article is original. For more information, see the source!
References:
"JUC lock 03: fair lock (1)"
"JUC lock" 03: fair lock
JAVA Thread exception monitoring, javathread
I. Scenario Description: A single-threaded program can capture program exceptions using try... catch, while a multi-threaded program cannot be captured using try... catch.
Example 1: a multi-thread
Netty-based lightweight high-performance distributed RPC service framework forest , nettyforest
Netty-based lightweight high-performance distributed RPC service framework forest
The article has briefly introduced the Quick Start of forest. This
Java -- Object Pooling technology org. apache. commons. pool2.ObjectPool, apachecommonspool
Org. apache. commons. pool2.ObjectPool provides an object pool, which can be directly used by developers to build an object pool.
There are two simple steps
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