Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaºËÐļ¼Êõ¾íII±Ê¼Ç

 1.¼òµ¥Ï̴߳´½¨
(1)ʵÏÖRunnable½Ó¿Ú£¬Runnable½Ó¿ÚÖ»ÓÐÒ»¸ö·½·¨run:
public interface Runnable
{
void run();
}
´´½¨ÀàʵÏÖrun·½·¨
class MyRunnable implements Runnable
{
public void run()
{
/*ÈÎÎñ´úÂë*/
}
}
(2)´´½¨¶ÔÏó
Runnable r = new MyRunnable();
(3)ÓÉRunnable´´½¨Ò»¸öThread¶ÔÏó:
Thread t = new Thread(r);
(4)Æô¶¯Ïß³Ì
t.start();
2.ÖжÏÏß³Ì
ĿǰûÓÐÇ¿ÖÆÖÐÖ¹ÏßË÷µÄ·½·¨£¬¿ÉÒÔÓÃinterrupt·½·¨À´ÇëÇóÖÐÖ¹Ï̡߳£


Ïà¹ØÎĵµ£º

»ùÓÚJavaµÄһЩȨÏÞ¿ò¼Ü¼ò½é


»ùÓÚJavaµÄһЩȨÏÞ¿ò¼Ü¼ò½é
JOSSO
  JOSSO(Java   Open   Single   Sign-On)ÊÇÒ»¸ö¿ªÔ´µÄJ2EE-basedµÄSSO(SSO£ºµ¥Ò»µÇ¼¼¼ÊõÊÇÒ»ÖÖÈÏÖ¤ºÍÊÚȨ»úÖÆ£¬ËüÔÊÐí×¢²áÓû§Ö»ÐèÒªÔÚÈÎÒ»³ÉÔ±ÍøÕ¾ÉϵǼһ´Î£¬¶øºóÊÚȨ·ÃÎÊÆäËûÁ¬½ÓµÄ·ÖÖ§ÍøÕ¾£¬ÎÞÐèÔÙ½øÐÐÑéÖ¤µÇ¼)»ù´¡½á¹¹.ËüµÄÄ¿µÄÊÇÌṩһÖÖÓÃÀ´½â¾öÔÚÍ³Ò ......

java ´úÂëÓÅ»¯

 1.1 ²»ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀý
ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀýʱ£¬¹¹Ô캯ÊýÁ´ÖеÄËùÓй¹Ô캯Êý¶¼»á±»×Ô¶¯µ÷Óᣵ«Èç¹ûÒ»¸ö¶ÔÏóʵÏÖÁËCloneable½Ó¿Ú£¬ÎÒÃÇ¿ÉÒÔµ÷ÓÃËüµÄclone()·½·¨¡£clone()·½·¨²»»áµ÷ÓÃÈκÎÀ๹Ô캯Êý¡£
ÔÚʹÓÃÉè¼Æģʽ£¨Design Pattern£©µÄ³¡ºÏ£¬Èç¹ûÓÃFactoryģʽ´´½¨¶ÔÏó£¬Ôò¸ÄÓÃclone()·½·¨´´½¨Ðµ ......

JavaÖÐCalendarºÍDateµÄһЩʹÓÃÓ÷¨¼¼ÇÉ

1. Èç¹ûÒѾ­ÖªµÀij¸öµØµãµÄʱÇø£¬Ä꣬Ô£¬ÈÕ£¬Ê±£¬·Ö£¬Ã룬ϣÍûµÃµ½×ª»»ºóµÄ±¾ÏµÍ³Ê±¼ä£¬¿ÉÒÔ²ÉÓÃÈçϵķ½·¨£º
·½·¨£º¼ÙÉèʱÇøÊÇGMT+08:00,£¬ÄêÊÇ2009Ä꣬ÔÂÊÇ11Ô£¬ÈÕÊÇ7ÈÕ£¬Ê±ÊÇ10ʱ£¬·ÖÊÇ50·Ö£¬ÃëÊÇ30¡£
public class Time {
 
 public static void main(String[] args) {
  TimeZone tz = Tim ......

javaºËÐĽ̳̱ʼÇ

1.privateÐÞÊη½·¨²»Äܱ»ÍⲿÀàµ÷Óá£
2.finalÐÞÊεĶÔÏó¹¹½¨ºó²»Äܱ»Ð޸ġ£
À©Õ¹:
finalÀ಻Äܱ»¼Ì³Ð£¬Ã»ÓÐ×ÓÀ࣬finalÀàÖеķ½·¨Ä¬ÈÏÊÇfinal¡£
final²»Äܱ»×ÓÀàµÄ·½·¨¸²¸Ç£¬µ«¿ÉÒÔ±»¼Ì³Ð¡£
final³ÉÔ±±äÁ¿±íʾ³£Á¿£¬Ö»Äܱ»¸³ÖµÒ»´Î£¬¸³ÖµºóÖµ²»Ôٸı䡣
final²»ÄÜÓÃÓÚÐÞÊι¹Ôì·½·¨¡£
finalº¯Êý²ÎÊýÎÞ·¨±»¸Ä±ä¡£
¸¸ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ