ÎÒµÄjavaѧϰÈÕ¼Ç
load-on-startupÔªËØÒ»°ãÊÇÅäºÏservletµÄÅäÖÃʹÓõÄ,load-on-startup ÔªËØÔÚwebÓ¦ÓÃÆô¶¯µÄʱºòÖ¸¶¨ÁËservlet±»¼ÓÔØµÄ˳Ðò£¬ËüµÄÖµ±ØÐëÊÇÒ»¸öÕûÊý¡£Èç¹ûËüµÄÖµÊÇÒ»¸ö¸ºÕûÊý»òÊÇÕâ¸öÔªËØ²»´æÔÚ£¬ÄÇôÈÝÆ÷»áÔÚ¸Ãservlet±»µ÷ÓõÄʱºò£¬¼ÓÔØÕâ¸öservlet ¡£Èç¹ûÖµÊÇÕýÕûÊý»òÁ㣬ÈÝÆ÷ÔÚÅäÖõÄʱºò¾Í¼ÓÔØ²¢³õʼ»¯Õâ¸öservlet£¬ÈÝÆ÷±ØÐ뱣ֵ֤СµÄÏȱ»¼ÓÔØ¡£Èç¹ûÖµÏàµÈ£¬ÈÝÆ÷¿ÉÒÔ×Ô¶¯Ñ¡ÔñÏȼÓÔØË¡£
Ïà¹ØÎĵµ£º
ת×Ô
http://blog.pfan.cn/sword2008/13772.html
Ò»¡¢static
¡¡¡¡ÇëÏÈ¿´ÏÂÃæÕâ¶Î³ÌÐò£º
public class Hello{
public static void main(String[] args){
//(1)
System.out.println("Hello,world!"); //(2)
......
package thread.lock;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* @file_name ReadAndWriteLockDemo.java
* @description ¶ÁÐ ......
1. ¹ØÓÚConnection Pool
JDBC±¾Éí²»ÌṩÁ¬½Ó³Ø¼¼Êõ£¬ÐèÒªµÚÈý·½¿âµÄÖ§³Ö¡£
ÔÚÐèҪƵ·±»ñµÃÁ¬½ÓµÄApplicationÖÐ×îºÃÓÃConnection Pool£¬ÈçWeb ApplicationÖÐ
¶ÔÓÚÒ»°ãµÄJava ApplicationÔò¿ÉÒÔÖ±½ÓÓÃJDBCÁ¬½ÓÊý¾Ý¿â¡£
2. Java ApplicationÖÐÁ¬½ÓDB2
°²×°DB2 Personal Edition V9Ö®ºó£¬ÔÚÆäÖ ......
Java ¼¼ÊõÊÇʲô£¿
Java ¼¼Êõ¼ÈÊÇÒ»Öָ߼¶µÄÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ£¬Ò²ÊÇÒ»¸öƽ̨¡£Java ¼¼Êõ»ùÓÚ Java ÐéÄâ»ú£¨Java virtual machine£¬JVM£©µÄ¸ÅÄî —— ÕâÊÇÓïÑÔÓëµ×²ãÈí¼þºÍÓ²¼þÖ®¼äµÄÒ»ÖÖת»»Æ÷¡£Java ÓïÑÔµÄËùÓÐʵÏÖ¶¼±ØÐëʵÏÖ JVM£¬´Ó¶øÊ¹ Java ³ÌÐò¿ÉÒÔÔÚÓÐ JVM µÄÈκÎϵͳÉÏÔËÐС£
Java ±à³ÌÓïÑÔ£¨Java p ......
1.vectorÊÇÏß³Ìͬ²½µÄ£¬ËùÒÔËüÒ²ÊÇḬ̈߳²È«µÄ£¬¶øarraylistÊÇÏß³ÌÒì²½µÄ£¬ÊDz»°²È«µÄ¡£Èç¹û²»¿¼Âǵ½Ï̵߳ݲȫÒòËØ£¬Ò»°ãÓÃarraylistЧÂʱȽϸߡ£ 2.Èç¹û¼¯ºÏÖеÄÔªËØµÄÊýÄ¿´óÓÚĿǰ¼¯ºÏÊý×éµÄ³¤¶Èʱ£¬vectorÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ100%,¶øarraylistÔö³¤ÂÊΪĿǰÊý×鳤¶ÈµÄ50%.Èç¹ýÔÚ¼¯ºÏÖÐʹÓÃÊý¾ÝÁ¿±È½Ï´óµÄÊý¾Ý£¬ÓÃvecto ......