Recently, the project has been done for half a year to the final Test ready to go, after the flow of the process to start doing some performance testing, during this time to do a lot of performance optimization work, in this take notes, share.
The iterator is mainly to support the container class traversal, the development process is as follows. Pre-Java 1.5 practices
If you are using a class library that is supported by Java 1.5, it is possible to walk through the collection element by
Using IO output streaming: Directly on Java code,
HTML interface only needs a Download address directly write the corresponding Java address just fine.
Method One:
@RequestMapping ("domload.it") public
void Domload (httpservletresponse response,
Turn from: http://www.cnblogs.com/jack204/archive/2012/07/02/2572934.html
Heap Settings-xmx3550m: Set JVM maximum heap memory to 3550M.-xms3550m: Set JVM initial heap memory to 3550M. This value can be set to be the same as-xmx to avoid the JVM
1. The understanding of the generic type
A high-level use of Java is the generic class, many basic frameworks will be built with generics, such as Gson ... Generics is really a good thing, but it is a sea of hundreds of rivers ... So as an Android
After learning the selection cycle, we began to extrapolate, write 3 small demo to try it.
First 99 multiplication table:
/*
* This is a program that prints out the 99 multiplication table Jiujiuchengfabiao
*/
public class jiujiuchengfabiao{
This chapter describes some of the combination patterns that make a class easier to thread-safe and do not unintentionally break security guarantees for classes when they are maintained.
In a single thread, if an operation cannot satisfy a priori
OverviewUnderstanding the Quartz architectureQuartz The problem of task scheduling in a highly abstract, the 3 core concepts of scheduler, task and trigger are presented, and the important core concepts are described through interfaces and classes
-MyEclipse to automatically import the jar packages required by the spring framework-Spring Getting Started test
1. To import the jar package required by spring
Description :Here spring requires a jar pack to be myeclipse in the box without
I did not understand why Java could not overload based on the return value, but only on the parameters of the method. For example, void F () {} and int f () {}, although they have the same name, are easy to distinguish. If I do this, it's definitely
The IO methods in Java are divided into 3 types: BIO (Synchronous blocking), NIO (synchronous non-blocking) and AIO (asynchronous non-blocking). BIO
Synchronous blocking mode. Prior to JDK1.4, using Java to establish a network connection, you could
have been preparing for an interview recently, in order to make their Java level a notch, read the Li Lin Teacher's
"Netty authoritative guide", learned Java about IO development and the latest technology, really benefit, now put
My summary of the
I. Handling of anomalies
(i) Classification of anomalies
No Exceptions checked: Exceptions that are not necessarily thrown or caught (uncontrolled or should be avoided)Error:java Run-time System Internal Error, resource exhaustion error. (not
Summarize the differences between using DOM to parse XML files in Java and JavaScript
1. Different ways to generate DOM document objects
A in JavaScript, create the DOM document object code as follows:
Creating an XML document
Varxmldoc = new
WebService implementation: 1. Use the Java JDK Web Service API to implement 2. Use CXF to combine spring
I. Using JDK Web Service API methods
① creates an interface that uses the @webservice () annotation to indicate that the Java interface is an
http://blog.csdn.net/xmlrequest/article/details/8992029
The future object in JDK1.5 can be realized;
Returns the future object after submitting the thread through the thread pool;
Important methods in the future class include Get () and cancel ().
Suggestions for Java concurrent programming
using immutable objects whenever possible
In a concurrent application environment, immutable objects have the following advantages:
(1) Immutable objects, once created, cannot be modified by any
Encapsulates operations on Excel, including local read-write Excel and output excel in streams
Import Java.io.File;
Import Java.io.FileInputStream;
Import java.io.FileNotFoundException;
Import Java.io.FileOutputStream;
Import
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