(1) First of all, you must ensure that all Java paths are set up, at the DOS prompt input jar-help
C:\Documents and Settings\dly>jar-help appear
Illegal option: H
Usage: jar {ctxu}[vfm0mi] [jar-file] [manifest-file] [-c directory] filename
There are three classes of field,method,constructor in the Java.lang.reflect package. Describes the domain, method, constructor, respectively. Reference API, a description of these three classes.
Use reflection profiling objects at run time, if
Original address: http://blog.csdn.net/huang_xw/article/details/7318554
/** * @Description: Two threads (thread 1 and thread 2) access the internal synchronization method of the same object SYN * Results: Thread 1 accesses the synchronization
As the project prepares to go online, a large amount of test data is prepared to test the performance of the new project, but it is less likely to use stored procedures and database transactions for data insertion.
The first use of the simplest Java
Java socket communication has been encapsulated, mainly using two classes ServerSocket and sockets
First, write a 1v1 communication.
Service side
/** * * * * * * Package com.dnion.socket;
Import Java.io.BufferedReader;
Import Java.io.BufferedWriter;
In doing a global search, encountered in the content of mobile phone expression, stored in the database is an error. Online search for a long time, found that many people do not go to experiment to copy other people's Code online hair, and then led
State transitions between threads:
1. NEW: A new Thread object was created.
2. Operational (runnable): When a thread object is created, other threads (such as the main thread) invoke the object's start () method. The thread in the state is in
Configured the server resin3 in eclipse based on the link Tomcat method (as follows:)Window----Preferences---myeclipse---application servers---resin3--1. Configure the JDK below (refer to the directory installed by the JDK).2.Paths---Append
Configure MySQL to be taken in a jndi way when the Meta-inf folder creates the Jndi for the Context.xml configuration application. Advantages for each application of independent jndi.
The configuration file and its steps are as follows:
1, Meta-inf
on the difference between ++i and i++ in Java
Today, a simple talk about Java, I believe that a lot of friends just started learning Java will encounter this problem, although the problem is very simple, but often easy to confuse, say Java i++ and ++
For example, there is a class that implements the Java.io.Serialize interface:Package com.on.test;public class Testserial implements Java.io.Serializable {}If the code is written just like this, it will give you a yellow warning in eclipse, why,
A virtual machine is a virtual computer that is used to perform a series of virtual computer commands. Virtual machines can generally be divided into the following:
(1) System virtual machine: Visual Box, VMware, etc.
(2) Program virtual machine:
code example Download: Http://pan.baidu.com/s/1jGuSdyY
Let's start with a simple example:
Import Java.io.BufferedReader;
Import java.io.IOException;
Import Java.io.InputStreamReader;
public class Echoplayer {public
string Echo (String msg)
Read the original
direct access to logical flows in Java code
In Java code, you can invoke all logical flows, both public and private.
Description
Direct access to the logical stream in Java code cannot be separated from the eosserver environment,
Now for the servlet listener listener, it's a server-side program that implements the Javax.servlet.ServletContextListener interface, and it's also started with web apps
Starts, initializes only once, and destroys with the Web application stopped.
Event-driven model to see JAVA NIO
Event-driven model to look at Java NiO, first to make a simple foreshadowing of knowledge,1, blocking non-blockingBlocking I/O model:(1) Waiting for the data to be ready;(2) Copy data from the kernel to the
The following is the author of the previous translation of garbage collection related articles Hotspot GC overview
Parallel Scavenge (parallel recycle)
In this article, we will describe how parallel garbage collection (Parallel GC) works.
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