System. Out. println ("Welcome to my java century network www.sina.net". replaceall ("[^/u4e00-/u9fa5]", "");System. out. println ("Welcome to my java century network, $ www.java.net ". replaceall ("[// w]", ""). replaceall ("// P {punct
I want to attend the csdn black horse training class in Zhongguancun and want to become a software engineer.
I have never written a blog before. I hope to train my eloquence by writing blogs and record the entire Java learning process.
1. Set cookie
Cookie = new cookie ("key", "value ");
Cookie. setmaxage (60 );
Set the 60-second lifetime. If it is set to a negative value, it is the browser process cookie (saved in memory). If it is disabled, the browser becomes invalid.
Cookie.
Implemented using the CountDownLatch class
Main thread
Package test;
Import java. util. concurrent. CountDownLatch;
Public class Main {
/**** @ Author Administrator/2012-3-1/09:36:55 AM*/Public static void main (String [] args ){
Int threadNum
Example of several functions in the Servlet Path:
Assume that the following request path is available:
Http: // 192.168.1.191: 8083/citizenweb/testservlet? Ywdm = 01 & czmd = 02 & dd= 00030
1./citizenweb
Request. getcontextpath ();
2.
Source author Neel V. Kumar Terway.com
Multithreading in Java programs is much easier to use than C or C ++, because the Java programming language provides language-level support. This article uses simple programming examples to illustrate how
Here, I use the example of querying user information from a user table to demonstrate its usage:
1. Compile the pageresultset. Java file into a class file and put it into your webThe package name can be modified under the WEB-INF/classes/COM/Youngor/
Http://www.theserverside.com/articles/article.tss? L = JBIforSOA
This article introduces JBI. Although it seems to be a little late, it should still be paid attention to by everyone.
SOA is not just a Webservice, but also a variety of interfaces
1. Some of the less-commonly used modifiers such as native and synchronized are found in the interview book.
Native: The local method controller. The native modifier is called the local method. To improve the program running speed, you need to use
Super Keyword: reference the components of the parent class in the subclass object (including the member variables and member methods of the parent class)
Class FatherClass // define the parent class
{
Public int value;Public void f ()
{Values = 100;
Polymorphism: determines the actual type of the referenced object during execution rather than during compilation, and calls the corresponding method based on the actual type.
Three necessary conditions for Polymorphism:
1. Inheritance required
2.
I. Overview
Assert is critical in both C and C ++ languages to indicate assertions.In Java, the assert keyword also exists, indicating assertions. Both the usage and meaning are similar.
Ii. Syntax
In Java, the assert keyword is introduced from Java
Exception: an error occurs during runtime.
Java exceptions are a mechanism provided by Java to handle errors in programs.
The so-called error refers to some abnormal events that occur during the running of the Program (for example, in addition to 0
When studying Apache Mina source code, IoBuffer is used as the data Buffer object in IoFilter, and the implementation of IoBuffer comes from java. nio. Buffer. The concepts of Buffer, such as flip (), clear (), reset (), and mark (), make me
I also implemented one in Java, and found that the regular expressions in Java are slightly different, and I also felt that the reading and writing files in Java are not elegant.
/** Created on 2004-10-1*/Import java. util. RegEx .*;Import java. Io
Let's talk about Java first,Many class libraries (various MVC, various javaee standards, spring, Hibernate ...... Learn more and learn at the age of 40)Many tools (Ant, Maven, Eclipse, various servers tomcat, WebLogic ......, There will be new tools)
Java implements several n and decomposition of 2, for example, 15 is decomposed into 2 three times + 2 2 times + 2 1 times + 2 0 times, for example 47 is decomposed: 2 5 times + 2 3 times + 2 2 times + 2 1 times + 2 0 times this is a problem
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