(1) Java ¼¼ÊõµÄ»ýÀÛ _DaemonÊØ»¤Ïß³Ì
Ïß³Ì Thread setDaemon ·½·¨
2009Äê07ÔÂ24ÈÕ ÐÇÆÚÎå 14:37
Thread setDaemon ·½·¨
import java.io.IOException;
/*
* ÊØ»¤Ïß³ÌÔÚûÓÐÓû§Ï߳̿ɷþÎñʱ×Ô¶¯À뿪
* ÔÚJavaÖбȽÏÌØÊâµÄÏß³ÌÊDZ»³ÆΪÊØ»¤£¨Daemon£©Ï̵߳ĵͼ¶±ðÏ̡߳£
* Õâ¸öÏ߳̾ßÓÐ×îµÍµÄÓÅÏȼ¶£¬ÓÃÓÚΪϵͳÖеÄÆäËü¶ÔÏóºÍÏß³ÌÌṩ·þÎñ¡£
* ½«Ò»¸öÓû§Ïß³ÌÉèÖÃΪÊØ»¤Ï̵߳ķ½Ê½ÊÇÔÚÏ̶߳ÔÏó´´½¨Ö®Ç°µ÷ÓÃÏ̶߳ÔÏóµÄsetDaemon·½·¨¡£
* µäÐ͵ÄÊØ»¤Ïß³ÌÀý×ÓÊÇJVMÖеÄϵͳ×ÊÔ´×Ô¶¯»ØÊÕỊ̈߳¬
* ÎÒÃÇËùÊìϤµÄJavaÀ¬»ø»ØÊÕÏ߳̾ÍÊÇÒ»¸öµäÐ͵ÄÊØ»¤Ị̈߳¬
* µ±ÎÒÃǵijÌÐòÖв»ÔÙÓÐÈκÎÔËÐÐÖеÄThread£¬
* ³ÌÐò¾Í²»»áÔÙ²úÉúÀ¬»ø£¬À¬»ø»ØÊÕÆ÷Ò²¾ÍÎÞÊ¿É×ö£¬
* ËùÒÔµ±À¬»ø»ØÊÕÏß³ÌÊÇJavaÐéÄâ»úÉϽöÊ£µÄÏß³Ìʱ£¬JavaÐéÄâ»ú»á×Ô¶¯À뿪¡£
* ËüʼÖÕÔڵͼ¶±ðµÄ״̬ÖÐÔËÐУ¬ÓÃÓÚʵʱ¼à¿ØºÍ¹ÜÀíϵͳÖеĿɻØÊÕ×ÊÔ´¡£
* ÊØ»¤½ø³Ì£¨Daemon£©ÊÇÔËÐÐÔÚºǫ́µÄÒ»ÖÖÌØÊâ½ø³Ì¡£Ëü¶ÀÁ¢ÓÚ¿ØÖÆÖն˲¢ÇÒÖÜÆÚÐÔµØÖ´ÐÐijÖÖÈÎÎñ»òµÈ´ý´¦ÀíijЩ·¢ÉúµÄʼþ¡£
* Ò²¾ÍÊÇ˵ÊØ»¤Ï̲߳»ÒÀÀµÓÚÖնˣ¬µ«ÊÇÒÀÀµÓÚϵͳ£¬Óëϵͳ“ͬÉú¹²ËÀ”¡£
* ÄÇJavaµÄÊØ»¤Ïß³ÌÊÇʲôÑù×ÓµÄÄØ¡£
* µ±JVMÖÐËùÓеÄÏ̶߳¼ÊÇÊØ»¤Ï̵߳Äʱºò£¬JVM¾Í¿ÉÒÔÍ˳öÁË£»
* Èç¹û»¹ÓÐÒ»¸ö»òÒÔÉϵķÇÊØ»¤Ïß³ÌÔòJVM²»»áÍ˳ö¡£
*/
public class testThread extends Thread {
public testThread() {
}
/** *//**
* Ï̵߳Ärun·½·¨£¬Ëü½«ºÍÆäËûÏß³ÌͬʱÔËÐÐ
*/
public void run(){
for(int i = 1; i <= 100; i++){
try{
Thread.sleep(100);
} catch (InterruptedException ex){
&nb
Ïà¹ØÎĵµ£º
JAVA¿ª·¢°ü¹¦Äܼò½é
TerrySMS for Java ÊÇÓÃJAVA¿ØÖÆGSM ModemʵÏÖ¶ÌÐÅÊÕ·¢¹¦ÄܵĿª·¢°ü¡£ÀûÓÃTerrySMS¿ÉÒÔʵÏÖ¿çƽ̨µÄ¶ÌÐÅ·¢ËÍ£¬Ä¿Ç°Ö§³ÖwindowsXP¡¢2000¡¢2003¡¢LinuxµÈ²Ù×÷ϵͳ¡£ÊÇʵÏÖÒµÎñϵͳºÍ¶ÌÐÅϵͳ¼Þ½ÓµÄÀíÏ빤¾ß¡£
JAVA¿ª·¢°ü¹¦ÄܽéÉÜ
1¡¢Ä¿Ç°Ö ......
¾õµÃÕâƪÎÄÕ±ȽÏÓÐÓþÍתÁË¡£¡£¡£
webservice
ÔÚÍøÉÏ¿´ÁËһϸ÷ÀàµÄ½Ì³Ì,javaºÍ.netÁ½ÖÖÓïÑÔÉú³ÉµÄwebserviceÖ®¼äµÄ»¥Í¨Ê¼ÖÕÊÇÒ»¸öÎÊÌâ,ÏëÕÒÒ»ÖÖjavaµ÷ÓÃ.netдµÄwebservice´úÀí·½·¨²»ÈÝÒ×,½á¹ûÃþË÷ÖÐjboss-ideÕâ¸öEclipse²å¼þ½â¾öÁËÎÊÌâ.
µ±È»Ê×ÏÈÊÇ°²×°jboss-ide ......
java WEBÈí¼þ¿ª·¢ÖеÄһЩÌå»á£¬ËüÓÉһϵÁÐ֪ʶ×é³É£¬ÎªÁËʵÏÖÒ»¸ö¹²Í¬µÄÄ¿µÄ£¬¼´Ò»¸ö°²È«£¬Îȶ¨£¬¿ÉÀ©Õ¹µÄÈí¼þ¡£
×ܽáÈçÏ£º
1 java»ù´¡
2 ²Ù×÷ϵͳ£¨windows£¬linux£¬unixµÈ£©
3 Êý¾Ý¿â£¨oracle£¬mysql£¬sqlserver£©
4 jsp£¨html£¬css£¬javascript£¬Ajax£¬XMLµÈ£©
5 Jsp·þÎñÆ÷£¨tomc ......
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
public class DealFile {
/**
* ɾ³ýÎļþ
......
±ØÐëµÄ³ÐÈÏjava»¥ÁªÍøÏîÄ¿Ç¿ÊƲ»ÔÚÕâÀï,ÊÇÐèÒª´óÁ¿¸¨Öú¹¤×÷²ÅÄÜÌá¸ßËÙ¶È
1 Ç°ÌáÓиöºÃÓ²¼þ
2 È«Õ¾html¾²Ì¬»¯ (·Çα¾²Ì¬)
3 ÕûºÏapache+tomcat »òÕßiis+tomcat Ö®ÀàµÄ µ±È»ÆäËûjava webÈÝÆ÷Ò²ÄÜÕûºÏ
4 squid ¼ÓËÙ
5 ¸ºÔؾùºâ apache
´óÌå¿ò¼ÜʵÏÖ¼´ÊÇÈç´Ë
Èç¹û»¹³Á½þÔÚ db connect µÈ¶ÔÏóûÓÐclos ......