Because some projects in the past need to write some high-performance servers, and the results are varied, we need to use NiO to write asynchronous servers, but some people have written NiO as synchronous, it is also written as a single batch
Case 1 The following uses the Java callback function to implement a tool class for testing the function running time: if we want to test the execution time of a class method, we usually do this:
PublicClassTestobject {
/**
* A method used
ArticleDirectory
ODBC connection of access under win7
The 64-bit operating system does not support the Microsoft ole db provider for jet driver.ProgramAnd earlier Microsoft Access Driver (*. mdb) connections are not supported.
Similar to the following factors:
1. From the page loading time point of view: static pages do not need to be connected to the database, especially when accessing pages with large data volumes. Most of these pages need to query many result sets,
Interface isolation principle (ISP): it is better to use multiple special interfaces than to use a single total interface.
The dependence of a class on another class should be based on the smallest interface.
An interface represents a role, and
Level: elementary
Chris graduated from the Information College of Renmin University of China.
June 27, 2003
Many people often encounter a problem when using java for document operations, that is, how to obtain the content of documents such as word,
Xml Code
Name = "UserDatabase" auth = "Container"
Type = "org. apache. catalina. UserDatabase"
Description = "User database that can be updated and saved"
Factory = "org. apache. catalina. users. MemoryUserDatabaseFactory"
Path Name = "
I. Attach external file Logo
When using FusionCharts, we may need to display the logo and image in the chart when loading the image. Here we can use the logoURL attribute. For example:
This link can be opened in
This article mainly describes jsp custom tags and jstl custom functions.
1-processing class
Processing of JSP custom tags
Public class StringTag extends TagSupport {/*****/private static final long serialVersionUID = 1L; private String content; //
If you modify the List object when you use Iterator to iterate over the List object, a java. util. ConcurrentModificationException exception is reported. The following is an example:
List list = ArrayList
This is a late blog post. It should be said that it was originally planned to be written at the beginning of the month. However, due to the recent rush in projects (working overtime almost every day, but there is no overtime fee, so it is difficult !
If the DTD and Schema declared in XML are on the network, the parser may not be able to obtain the Schema during parsing, resulting in parsing failure.
The solution is to use the XML Catalog. The parser requests resources from it, and whether the
Principle:Because gb2312/gbk is a Chinese byte, the two bytes have a value range, while UTF-8 contains three Chinese characters, and each byte also has a value range. The English language only occupies one byte (excluding the full width), regardless
This is used in the constructor. When the constructor of different parameter lists is used, if the constructor has the same function as another constructor, the constructor can call the function of the constructor.
Format:
This (value );
Class
The following 10 programming questions can be done first to check your basic level.If you can finish it all. It means that the knowledge of JavaSE is okay.After learning JavaEE well, you will be able to find a good job in the future.If you have any
To execute a linux shell script in the project, you need to execute External commands such as system commands and linux commands in the java environment, I checked some information online and sorted it out as follows.
Java executes External commands
The small Editor downloads the jdk1.6 version and explains how to install it,
My jdk installation directory is under this directory
Next we will configure the Environment Variables
Java_home
Classpath
You can refer to the configuration
1. History and origin of Java
Formerly known as Oak, it is designed for embedded system development. Its syntax is basically the same as that of C/C ++.
Ii. Java features
Java consists of four aspects: Java programming language, Java file format,
1. Find the available oracle jdbs driver jar package and place it in the specified directory (which can be customized as needed) D: \ jdbc \ ojdbc14.jar
2. Install maven. Configure the environment variable MAVEN_HOME = 'point to the maven
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