ÈçºÎÍ£Ö¹javaÏß³Ì
ÈçºÎÍ£Ö¹javaµÄÏß³ÌÒ»Ö±ÊÇÒ»¸öÀ§ÄÕÎÒÃÇ¿ª·¢¶àÏ̳߳ÌÐòµÄÒ»¸öÎÊÌâ¡£Õâ¸öÎÊÌâ×îÖÕÔÚJava5µÄjava.util.concurrentÖеõ½Á˻شð£ºÊ¹ÓÃinterrupt()£¬ÈÃÏß³ÌÔÚrun·½·¨ÖÐÍ£Ö¹¡£ ¼ò½é ÔÚJavaµÄ¶àÏ̱߳à³ÌÖУ¬java.lang.ThreadÀàÐÍ°üº¬ÁËһЩÁеķ½·¨start(), stop(), stop(Throwable) and suspend(), destroy() and resume()¡£Í¨¹ýÕâЩ·½·¨£¬ÎÒÃÇ¿ÉÒÔ¶ÔÏ߳̽øÐз½±ãµÄ²Ù×÷£¬µ«ÊÇÕâЩ·½·¨ÖУ¬Ö»ÓÐstart()·½·¨µÃµ½Á˱£Áô¡£ ÔÚSun¹«Ë¾µÄһƪÎÄÕ¡¶Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? ¡·ÖÐÏêϸ½²½âÁËÉáÆúÕâЩ·½·¨µÄÔÒò¡£ÄÇô£¬ÎÒÃǾ¿¾¹Ó¦¸ÃÈçºÎÍ£Ö¹Ïß³ÌÄØ£¿ ½¨ÒéʹÓõķ½·¨ ÔÚ¡¶Why are Thread.stop, Thread.suspend and Thread.resume Deprecated? ¡·ÖУ¬½¨ÒéʹÓÃÈçϵķ½·¨À´Í£Ö¹Ị̈߳º private volatile Thread blinker;
public void stop() {
blinker = null;
}
public void run() {
Thread thisThread = Thread.currentThread();
while (blinker == thisThread) {
try {
thisThread.sleep(interval);
} catch (InterruptedException e){
}
repaint();
}
} ¹ØÓÚʹÓÃvolatile¹Ø¼ü×ÖµÄÔÒò£¬Çë²é¿´http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#36930¡£ µ±Ï̴߳¦ÓÚ·ÇÔËÐУ¨Run£©×´Ì¬ µ±Ï̴߳¦ÓÚÏÂÃæµÄ×´¿öʱ£¬ÊôÓÚ·ÇÔËÐÐ״̬£º µ±sleep·½·¨±»µ÷Óᣠµ±wait·½·¨±»µ÷Óᣠµ±±»I/O×èÈû£¬¿ÉÄÜÊÇÎļþ»òÕßÍøÂçµÈµÈ¡£ µ±Ï̴߳¦ÓÚÉÏÊöµÄ״̬ʱ£¬Ê¹ÓÃÇ°Ãæ½éÉܵķ½·¨¾Í²»¿ÉÓÃÁË¡£Õâ¸öʱºò£¬ÎÒÃÇ¿ÉÒÔ
Ïà¹ØÎĵµ£º
Ó¦¸Ã¾ÍÊÇ°Ñjava ÀïÃæµÄ×é¼þ¸ãÃ÷°×
Servlet
ServletÊÇÒ»ÖÖ»ùÓÚwebµÄJava×é¼þ£¬ËüÓÉÈÝÆ÷¹ÜÀí£¬²¢¶¯Ì¬Éú³ÉÆäÄÚÈÝ
ÔòûÓÐͼÐνçÃ棬ÔËÐÐÔÚ·þÎñÆ÷¶Ë
ËüÃǶ¼ÓÐÒ»¸öÉú´æÖÜÆÚ£¬°üº¬init()ºÍdestroy()·½·¨
²»ÊǶÀÁ¢µÄÓ¦ÓóÌÐò£¬Ã»ÓÐmain()·½·¨
Ó봫ͳµÄCGIºÍÐí¶àÆäËûÀàËÆCGIµÄ¼¼ÊõÏà±È£¬Java Servlet¾ßÓиü¸ßµÄЧÂÊ£¬¸ ......
°ÑÒÔÇ°×ö¹ýµÄÏîÄ¿×ܽáһϣ¡²Î¼Ó¹¤×÷ÒÔÀ´Ò»¹²ÓÃÈýÖÖ²»Í¬ÓïÑÔʵÏÖÁË»ñµÃÎļþ¼Ð¼°Æä×ÓÎļþÐÅÏ¢¡£ÎªÁË·½±ãÒÔºóʹÓÃ×ܽáÒ»ÏÂ
airʵÏÖ£º
private function getfile(filelist:File):Array{
var list:Array = filelist.getDirectoryListing();
var count:uint=list.length;
......
import java.io.*;
public class CaiPiao {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String str;
BufferedReader bufferReader = new BufferedReader(new InputStreamReader(System.in ......
×î½ü³õ²½½Ó´¥ÁËÏÂJava¼ÓÃܺÍÊý×ÖÇ©ÃûµÄÏà¹ØÄÚÈÝ£¬ÎÒѧϰµÄ¹ý³Ì´ó¸Å·ÖÎå²½£º
1£©ÏûÏ¢ÕªÒª
2£©Ë½Ô¿¼ÓÃÜ
3£©¹«Ô¿¼ÓÃÜ
4£©Êý×ÖÇ©Ãû
5£©Êý×ÖÖ¤Êé
ÏÂÃæµÄ´úÂëÊǵÚÈý²¿·Ö£º¹«Ô¿¼ÓÃÜ
Ï£ÍûÄÜΪ¸Õ¸Õ½Ó´¥Õâ¸öµÄÅóÓÑÃÇÊ¡µãÊÂ
package security;
import java.security.KeyPair;
import java.security.KeyPairGenerator ......