³õѧJAVAÖ®ËÄ
±àдһ¸ö¼òµ¥µÄÎı¾±à¼Æ÷£¬ÒªÇ󣺾ßÓдò¿ª¡¢±£´æ¡¢Ð½¨£¬Õ³Ìù¡¢¸´ÖƵȹ¦ÄÜ£»¾ßÓÐÒ»¸ö¹¤¾ßÌõ¡£±àдһ¸öÀàËÆ Windows ¼Çʱ¾µÄ¼òµ¥³ÌÐò£¬¸Ã³ÌÐòÄܹ»´´½¨ÐÂÎļþ¡¢¶ÁÈ¡ÒѾ´æÔÚµÄÎļþ¡¢²é¿´ºÍÐÞ¸ÄÎı¾ÒÔ¼°±£´æΪÎı¾Îļþ¡£
ÔÝʱ»¹²»»á×ö£¬Å¬Á¦ÖС£¡£¡£¡£¡£¡£¡£¡£
Ïà¹ØÎĵµ£º
A.ʹÓùؼü×ÖthisµÄ×¼Ôò£º
1.ÔÚ¹¹ÔìÆ÷ÖУ¬Èç¹ûҪʹÓùؼü×Öthis,ÄÇô£¬±ØÐë·ÅÔÚµÚÒ»ÐУ¬·ñÔò½«µ¼ÖÂÒ»¸ö±àÒë´íÎó¡£
2.¹¹Ôì·½·¨ÒýÓÃthisÖ¸ÏòÕýÔÚÖ´Ðз½·¨µÄÀàµÄʵÀý¡£¾²Ì¬·½·¨²»ÄÜʹÓÃthis¹Ø¼ü×Ö£¬ÒòΪ¾²Ì¬·½·¨²»ÊôÓÚÀàµÄʵÀý£¬ËùÒÔthisÒ²¾ÍûÓÐʲô¶«Î÷È¥Ö¸Ïò¡£¹¹ÔìÆ÷µÄthisÖ¸Ïòͬһ¸öÀàÖУ¬²»Í¬²ÎÊýÁбíµÄÁíÍâÒ» ......
±¾ÎÄÕë¶Ôjdk6.0ÖÐjava.lang.ClassÀàµÄAPI½øÐÐÁ˼òµ¥µÄʵÀýÓ¦Óã¬Àý×Ó¼òµ¥Ò׶®£¬±È½ÏÊʺÏÈëÃż¶ÔĶÁ¡£
ʵÀý¼ò½é£º
/*
*IncludeInnerClassÀàÖаüº¬ÁËÈýÖÖ·ÃÎÊ¿ØÖƵÄÄÚ²¿À࣬²¢ÇÒÒÔÕâÈý¸öÄÚ²¿ÀàµÄÒýÓöÔÏóºÍÒ»¸öÕûÐÍÊý×÷ΪÊôÐÔ£¬ÔÚÍⲿÀàµÄ·½·¨Öзֱðµ÷ÓÃÁË ÄÚ²¿ÀàµÄ·½·¨
*ÍⲿÀàÓÐÁ½¸ö¹¹Ôì·½·¨£¬ ......
Producer-Consumer PatternµÄ²ÎÓëÕߣº
1. Data²ÎÓëÕß
±»Producer²ÎÓëÕßËù´´½¨£¬²¢ÓÉConsumer²ÎÓëÕßËùʹÓá£
2. Producer£¨Éú²úÕߣ©²ÎÓëÕß
´´½¨Data²ÎÓëÕߣ¬²¢½«Æä´«µÝ¸øChannel²ÎÓëÕß¡£
3. Consumer£¨Ïû·ÑÕߣ©²ÎÓëÕß
´ÓChannel²ÎÓëÕß»ñÈ¡Data²ÎÓëÕß¡ ......
µ±Ò»¸ö·½·¨ºóÃæÉùÃ÷¿ÉÄÜ»áÅ׳öInterruptedException Ò쳣ʱ£¬ËµÃ÷¸Ã·½·¨ÊÇ¿ÉÄܻỨһµãʱ¼ä£¬µ«ÊÇ¿ÉÒÔÈ¡ÏûµÄ·½·¨¡£
Å×InterruptedExceptionµÄ´ú±í·½·¨ÓУº
1. java.lang.Object ÀàµÄ wait ·½·¨
2. java.lang.Thread ÀàµÄ sleep ·½·¨
3. java.lang.Thread ÀàµÄ join ·½·¨
-- ÐèÒª»¨µãʱ¼äµÄ·½·¨
Ö´ÐÐwait·½·¨µÄÏ ......
JSPµÄ9¸öÄÚÖöÔÏóÊÇ£ºout¡¢request¡¢response¡¢page¡¢pageContext¡¢session¡¢application¡¢exception¡¢config¡£Òª×¢Òâ¶ÔÏóÃûµÄ´óСд
What results from attempting to compile and run the following code? public class Ternary{ public static void main(String args[]){ int a = 5; System.out.printl ......