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

JavaỊ̈߳ºÏß³Ì״̬µÄת»»

JavaỊ̈߳ºÏß³Ì״̬µÄת»»
 
SCJP5ѧϰ±Ê¼Ç
 
Ò»¡¢Ïß³Ì״̬
 
Ï̵߳Ä״̬ת»»ÊÇÏ߳̿ØÖƵĻù´¡¡£Ïß³Ì״̬×ܵĿɷÖΪÎå´ó״̬£º·Ö±ðÊÇÉú¡¢ËÀ¡¢¿ÉÔËÐС¢ÔËÐС¢µÈ´ý/×èÈû¡£ÓÃÒ»¸öͼÀ´ÃèÊöÈçÏ£º
 
1¡¢ÐÂ״̬£ºÏ̶߳ÔÏóÒѾ­´´½¨£¬»¹Ã»ÓÐÔÚÆäÉϵ÷ÓÃstart()·½·¨¡£
 
2¡¢¿ÉÔËÐÐ״̬£ºµ±Ïß³ÌÓÐ×ʸñÔËÐУ¬µ«µ÷¶È³ÌÐò»¹Ã»ÓаÑËüÑ¡¶¨ÎªÔËÐÐÏß³ÌʱÏß³ÌËù´¦µÄ״̬¡£µ±start()·½·¨µ÷ÓÃʱ£¬Ïß³ÌÊ×ÏȽøÈë¿ÉÔËÐÐ״̬¡£ÔÚÏß³ÌÔËÐÐÖ®ºó»òÕß´Ó×èÈû¡¢µÈ´ý»ò˯Ãß״̬»ØÀ´ºó£¬Ò²·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
3¡¢ÔËÐÐ״̬£ºÏ̵߳÷¶È³ÌÐò´Ó¿ÉÔËÐгØÖÐÑ¡ÔñÒ»¸öÏß³Ì×÷Ϊµ±Ç°Ïß³ÌʱÏß³ÌËù´¦µÄ״̬¡£ÕâÒ²ÊÇÏ߳̽øÈëÔËÐÐ״̬µÄΨһһÖÖ·½Ê½¡£
 
4¡¢µÈ´ý/×èÈû/˯Ãß״̬£ºÕâÊÇÏß³ÌÓÐ×ʸñÔËÐÐʱËüËù´¦µÄ״̬¡£Êµ¼ÊÉÏÕâ¸öÈý״̬×éºÏΪһÖÖ£¬Æ乲ͬµãÊÇ£ºÏß³ÌÈÔ¾ÉÊÇ»îµÄ£¬µ«Êǵ±Ç°Ã»ÓÐÌõ¼þÔËÐС£»»¾ä»°Ëµ£¬ËüÊÇ¿ÉÔËÐеģ¬µ«ÊÇÈç¹ûij¼þʼþ³öÏÖ£¬Ëû¿ÉÄÜ·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
5¡¢ËÀÍö̬£ºµ±Ï̵߳Ärun()·½·¨Íê³Éʱ¾ÍÈÏΪËüËÀÈ¥¡£Õâ¸öÏ̶߳ÔÏóÒ²ÐíÊÇ»îµÄ£¬µ«ÊÇ£¬ËüÒѾ­²»ÊÇÒ»¸öµ¥¶ÀÖ´ÐеÄÏ̡߳£Ïß³ÌÒ»µ©ËÀÍö£¬¾Í²»Äܸ´Éú¡£ Èç¹ûÔÚÒ»¸öËÀÈ¥µÄÏß³ÌÉϵ÷ÓÃstart()·½·¨£¬»áÅ׳öjava.lang.IllegalThreadStateExceptionÒì³£¡£
 
ÓйØÏêϸ״̬ת»»Í¼¿ÉÒԲο´±¾È˵ēJava¶àÏ̱߳à³Ì×ܽá”ÖеÄͼ
 
¶þ¡¢×èÖ¹Ïß³ÌÖ´ÐÐ
¶ÔÓÚÏ̵߳Ä×èÖ¹£¬¿¼ÂÇÒ»ÏÂÈý¸ö·½Ã棬²»¿¼ÂÇIO×èÈûµÄÇé¿ö£º
˯Ãߣ»
µÈ´ý£»
ÒòΪÐèÒªÒ»¸ö¶ÔÏóµÄËø¶¨¶ø±»×èÈû¡£
 
1¡¢Ë¯Ãß
Thread.sleep(long millis)ºÍThread.sleep(long millis, int nanos)¾²Ì¬·½·¨Ç¿ÖƵ±Ç°ÕýÔÚÖ´ÐеÄÏß³ÌÐÝÃߣ¨ÔÝÍ£Ö´ÐУ©£¬ÒÔ“¼õÂýÏ߳̔¡£µ±Ïß³Ì˯Ãßʱ£¬ËüÈë˯ÔÚij¸öµØ·½£¬ÔÚËÕÐÑ֮ǰ²»»á·µ»Øµ½¿ÉÔËÐÐ״̬¡£µ±Ë¯Ãßʱ¼äµ½ÆÚ£¬Ôò·µ»Øµ½¿ÉÔËÐÐ״̬¡£
 
Ïß³Ì˯ÃßµÄÔ­Òò£ºÏß³ÌÖ´ÐÐÌ«¿ì£¬»òÕßÐèҪǿÖƽøÈëÏÂÒ»ÂÖ£¬ÒòΪJava¹æ·¶²»±£Ö¤ºÏÀíµÄÂÖ»»¡£
 
˯ÃßµÄʵÏÖ£ºµ÷Óþ²Ì¬·½·¨¡£
        try {
            Thread.sleep(123);
        } catch (InterruptedException e) {
            e.printStackTrace(); 
      &nb


Ïà¹ØÎĵµ£º

JavaÓëC++

1¡¢Java²ÉÓÃUnicode×Ö·û¼¯£¬Ôö¼ÓÁ˶ԷÇÀ­¶¡ÓïϵµÄÖ§³Ö£¬Ò»¸öºº×Ö¿ÉÒÔÖ±½Ó×÷Ϊһ¸ö×Ö·û³£Á¿½øÐи³Öµ¶øÔÚC++ÖбØÐë×öΪ×Ö·û´®´¦Àí
  char chTemp = 'ÎÒ';
  System.out.println(chTemp);
Java×Ö·ûÊÇÒ»¸ö16ΪµÄÎÞ·ûºÅÕûÊý£¬C++ÖÐΪ8λ
2. Java±êʶ·û¿ÉÒÔÒÔÃÀÔª·û$¿ªÍ·£¬¿Éº¬ÓÐËùÓÐÊ®Áù½øÖÆÖµ´óÓÚ0xc0µ ......

Java Ïà¹ØÄÚÈÝÔÓ¼Ç

1¡¢Eclipse µÄÆô¶¯»­Ãæ
   A¡¢¼ÓÆô¶¯²ÎÊý¡£È磺 eclipse.exe -showsplash C:\splash.bmp
        ¸ü¶à¿É²Î¿¼£ºhttp://www.cnblogs.com/sharewind/archive/2007/03/11/671270.html
   B¡¢ÐÞ¸ÄĬÈÏͼƬ¡£Î»ÓÚ£ºplugins\org.eclipse.platform_3.3.2.R33x_v20071022 ......

¹ØÓÚInitializing java tooling£¨1%£©

´ò¿ªeclipse£¬·¢ÏÖeclipseå´µôÁË£¬²¢ÇÒ³öÏÖÕâÑùµÄÌáʾ£º¹ØÓÚInitializing java tooling£¨1%£©...
ÖØÆôÁ˼¸´ÎÖ®ºó·¢ÏÖÎÊÌâÈÔÈ»´æÔÚ£¬Òò¶ø¿ñËÑÁËÒ»°Ñ£¬ÖÕÓÚÕÒµ½ÕýÈ·µÄ½â¾ö°ì·¨£¬ÈçÏ£º
ÕÒµ½eclipseĿ¼£¬±à¼­eclipse.iniÎļþ£¬ÔÚ-vmargs²ÎÊý֮ǰÌí¼ÓÉÏÈçϲÎÊý£¨Ò»¶¨ÒªÏñÏÂÃæÕâÑùд³ÉÁ½ÐУ©£¬È»ºóÖØÆô¾ÍokÁË
-vm
C:\Progr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ