Original post address: http://www.cnblogs.com/feidao/archive/2005/07/15/193788.html
recently studied Java NiO as well as threading concurrency, made a point of thinking, special notes as follows (NiO article)
Because the previous project needs to write a number of high-performance servers, the results are written in a variety of results, we require the use of NIO to write asynchronous server, but unexpec
[Socket programming] Java communication is made in this way. socketjavaIntroduction
The network is everywhere, and the mobile Internet era has already arrived. The standalone version of the program has no vitality. All programs must be able to access the network, such as QQ chat programs and thunder download programs, these programs must deal with the network. This time, we will share with you the network p
Java Socket programming-communication is made in this wayJava was originally used as a network programming language. It provides high support for the network, making communication between the client and the server a reality. In network programming, the most commonly used is Socket. QQ and MSN are familiar with Socket-related technologies. Let's unveil the secrets of Socket. Socket programming I. Basic netwo
Ten common errors made by Java developersThis article lists the most common errors made by Java developers. 1. to convert an array to an ArrayList, developers often do this: List
First, multiple Java files are compiledFind. -type f-name *.java > Compilelist (. On behalf of the current path)JAVAC-CP "$CLASSPATH"-encoding MS932 @compilelist (encoding can be specified arbitrarily)Then, the entire compiled. class fileFind. -type f-name *.class > ClassfilelistClassfiles= ' Cat classfilelist 'Finally, package the compiled. class fileJar CVF Com.web.soft.procedure.LIBRARY.jar $classfilesIn
Java web regularly executes tasks every day (four steps are easy to handle) and four steps are easy to handle
Step 1:
Package com. eh. util; import java. util. calendar; import java. util. date; import java. util. timer;/***
8 Steps to learn Java, easy monthly entry of over, 8 Steps java monthly entry
Java, as a general programming language, can do a lot of things, but it depends on how to learn Java. Many beginners want to remember the basic principles of J
I remember when my sophomore year was about to end, a girl suddenly asked me, "Do you know Java? Can you help me do my homework ?" To be honest, the girl was really pretty and I wanted to help her at the time. However, I have never been in touch with Java, so that I can't afford to finish my homework on Java programming in just a few days. In the end, I did not p
the hands of students, so that students can review the classroom learning content, the content of the class to do a strengthening of the consolidation!Wuhan Soft International Java Students employment prospects and "money scene" are very optimistic, just into the "rookie" to take higher than the other people's salary, college students can not find a job to do?! What if you want to get a high salary? Come to Wuhan Middle Soft international study
The difference between Java member variables and attributes is simple and easy to understand !!!, Java Variables
Example 1: A Student pojo class: public class Student {private String name; private int age; public String getName () {return this. name;} public void setName (String name) {this. name = name;} public int getAge () {return this. age;} public void setA
java.lang.annotation.Target;@Target(ElementType.METHOD)@Retention(RetentionPolicy.RUNTIME)@Documentedpublic @interface PojoPostProcessing { public Class targetClass(); public String[] whiteProperties();}Use annotations, such as here I set to a method: @PojoPostProcessing(targetClass=User.class, whiteProperties={"name"}) public ListReflection gets the information for the annotation: @Test public void test() throws NoSuchMethodException, SecurityException, ClassNotFoundE
Turn from: Groovy easy to get started-get a quick grasp of groovy with Java comparison (updated on 2008.10.18)in the previous articles, I've already told you what groovy is, how important it is to learn groovy, and what I don't know about groovy as a friend of my blog.Groovy Categories. I'll take a comparison of groovy and Java to unlock the mystery of groovy. Re
.
In Java, there is only one similar method for security backtracking, but it is not very simple. You must define a local method to provide an interface for the C language and then provide the connection medium. The Java environment provides tools to complete such tasks. However, the entire process is insignificant compared with the extern provided in C ++, and the process of using C ++ classes is more comp
: The wait method causes the thread to release the lock that his lock occupies.3) Use different areas: The wait method must be used in either the synchronization control method or the synchronous statement block. Sleep must catch an exception.29:JDBC General steps to access a database:1) load the JDBC drive.2) load the JDBC driver.3) Establish a database connection to get the connection object.4) Establish statement object or PreparedStatement object.5) Execute the SQL statement.6) Access result
looking forward to reading from the start Org.w3c.dom"; Jdom can read the contents of Sax or DOM, You can also output formats that sax or DOM can receive. This ability enables jdom to integrate well with existing systems built with SAX or DOM.
The principle of Jdom
The first and most important one is that Jdom API functions are designed to be easy to understand for Java programmers. Other XML parsing fun
conclusion. Is that the tool in the JDK is almost written in Java, so it is also a Java application, so to use the tools attached to the JDK to develop Java programs, you must also attach a set of JRE, so it is located in C:\Program files\ The JRE in the Java directory is used to run generic
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.