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

Çø±ðjavaµÄ C++ÄÚ´æ·ÖÅä ֪ʶ,È«¾Ö£¬¾Ö²¿£¬¾²Ì¬±äÁ¿


Ô¤±¸ÖªÊ¶—³ÌÐòµÄÄÚ´æ·ÖÅä 
Ò»¸öÓÉC/C++±àÒëµÄ³ÌÐòÕ¼ÓõÄÄÚ´æ·ÖΪÒÔϼ¸¸ö²¿·Ö 
1¡¢Õ»Çø£¨stack£©— ÓɱàÒëÆ÷×Ô¶¯·ÖÅäÊÍ·Å £¬´æ·Åº¯ÊýµÄ²ÎÊýÖµ£¬¾Ö²¿±äÁ¿µÄÖµµÈ¡£Æä²Ù×÷·½Ê½ÀàËÆÓÚÊý¾Ý½á¹¹ÖеÄÕ»¡£ 
2¡¢¶ÑÇø£¨heap£© — Ò»°ãÓɳÌÐòÔ±·ÖÅäÊÍ·Å£¬ Èô³ÌÐòÔ±²»ÊÍ·Å£¬³ÌÐò½áÊøʱ¿ÉÄÜÓÉOS»ØÊÕ ¡£×¢ÒâËüÓëÊý¾Ý½á¹¹ÖеĶÑÊÇÁ½»ØÊ£¬·ÖÅ䷽ʽµ¹ÊÇÀàËÆÓÚÁ´±í£¬ºÇºÇ¡£
3¡¢È«¾ÖÇø£¨¾²Ì¬Çø£©£¨static£©—£¬È«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿µÄ´æ´¢ÊÇ·ÅÔÚÒ»¿éµÄ£¬³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍ¾²Ì¬±äÁ¿ÔÚÒ»¿éÇøÓò£¬ δ³õʼ»¯µÄÈ«¾Ö±äÁ¿ºÍδ³õʼ»¯µÄ¾²Ì¬±äÁ¿ÔÚÏàÁÚµÄÁíÒ»¿éÇøÓò¡£ - ³ÌÐò½áÊøºóÓÐϵͳÊÍ·Å 
4¡¢ÎÄ×Ö³£Á¿Çø —³£Á¿×Ö·û´®¾ÍÊÇ·ÅÔÚÕâÀïµÄ¡£ ³ÌÐò½áÊøºóÓÉϵͳÊÍ·Å 
5¡¢³ÌÐò´úÂëÇø—´æ·Åº¯ÊýÌåµÄ¶þ½øÖÆ´úÂë¡£
Ò»¸öÕý³£µÄ³ÌÐòÔÚÄÚ´æÖÐͨ³£·ÖΪ³ÌÐò¶Î£¬Êý¾Ý¶ËºÍ¶ÑÕ»Èý²¿·Ö¡£³ÌÐò¶ÎÀï·Å×ųÌÐòµÄ»úÆ÷ÂëºÍÖ»¶ÁÊý¾Ý£¬Õâ¸ö¶Îͨ³£ÊÇÖ»¶Á£¬¶ÔËüµÄд²Ù×÷ÊÇ·Ç·¨µÄ¡£Êý¾Ý¶Î·ÅµÄÊdzÌÐòÖеľ²Ì¬Êý¾Ý¡£¶¯Ì¬Êý¾ÝÔòͨ¹ý¶ÑÕ»À´´æ·Å¡£ÔÚÄÚ´æÖУ¬ËüÃǵÄλÖÃÈçÏ£º 
+------------------+ ÄÚ´æµÍ¶Ë 
| ³ÌÐò¶Î | 
|------------------| 
| Êý¾Ý¶Î | 
|------------------| 
| ¶ÑÕ» | 
+------------------+ ÄÚ´æ¸ß¶Ë 
¶ÑÕ»ÊÇÄÚ´æÖеÄÒ»¸öÁ¬ÐøµÄ¿é¡£Ò»¸ö½Ð¶ÑÕ»Ö¸ÕëµÄ¼Ä´æÆ÷£¨SP£©Ö¸Ïò¶ÑÕ»µÄÕ»¶¥¡£¶ÑÕ»µÄµ×²¿ÊÇÒ»¸ö¹Ì¶¨µØÖ·¡£¶ÑÕ»ÓÐÒ»¸öÌصã¾ÍÊÇ£¬ºó½øÏȳö¡£Ò²¾ÍÊÇ˵£¬ºó·ÅÈëµÄÊý¾ÝµÚÒ»¸öÈ¡³ö¡£ËüÖ§³ÖÁ½¸ö²Ù×÷£¬PUSHºÍPOP¡£PUSHÊǽ«Êý¾Ý·Åµ½Õ»µÄ¶¥¶Ë£¬POPÊǽ«Õ»¶¥µÄÊý¾ÝÈ¡³ö¡£
Ôڸ߼¶ÓïÑÔÖУ¬³ÌÐòº¯Êýµ÷Óúͺ¯ÊýÖеÄÁÙʱ±äÁ¿¶¼Óõ½¶ÑÕ»¡£ÎªÊ²Ã´ÄØ£¿ÒòΪÔÚµ÷ÓÃÒ»¸öº¯Êýʱ£¬ÎÒÃÇÐèÒª¶Ôµ±Ç°µÄ²Ù×÷½øÐб£»¤£¬Ò²ÎªÁ˺¯ÊýÖ´Ðк󣬳ÌÐò¿ÉÒÔÕýÈ·µÄÕÒµ½µØ·½¼ÌÐøÖ´ÐУ¬ËùÒÔ²ÎÊýµÄ´«µÝºÍ·µ»ØÖµÒ²Óõ½Á˶ÑÕ»¡£Í¨³£¶Ô¾Ö²¿±äÁ¿µÄÒýÓÃÊÇͨ¹ý¸ø³öËüÃǶÔSPµÄÆ«ÒÆÁ¿À´ÊµÏֵġ£ÁíÍ⻹ÓÐÒ»¸ö»ùÖ·Ö¸Õ루FP£¬ÔÚIntelоƬÖÐÊÇBP£©£¬Ðí¶à±àÒëÆ÷ʵ¼ÊÉÏÊÇÓÃËüÀ´ÒýÓñ¾µØ±äÁ¿ºÍ²ÎÊýµÄ¡£Í¨³££¬²ÎÊýµÄÏà¶ÔFPµÄÆ«ÒÆÊÇÕýµÄ£¬¾Ö²¿±äÁ¿ÊǸºµÄ¡£ 
µ±³ÌÐòÖз¢Éúº¯Êýµ÷ÓÃʱ£¬¼ÆËã»ú×öÈçϲÙ×÷£ºÊ×ÏȰѲÎÊýѹÈë¶ÑÕ»£»È»ºó±£´æÖ¸Áî¼Ä´æÆ÷(IP)ÖеÄÄÚÈÝ£¬×öΪ·µ»ØµØÖ·(RET)£»µÚÈý¸ö·ÅÈë¶ÑÕ»µÄÊÇ»ùÖ·¼Ä´æÆ÷(FP)£»È»ºó°Ñµ±Ç°µÄÕ»Ö¸Õë(SP)¿½±´µ½FP£¬×öΪеĻùµØÖ·£»×îºóΪ±¾µØ±äÁ¿Áô³öÒ»¶¨¿Õ¼ä£¬°ÑSP¼õÈ¥Êʵ±µÄÊýÖµ¡£ 
Ô


Ïà¹ØÎĵµ£º

java·ºÐÍÏê½â

·ºÐÍ£¨Generic type »òÕßgenerics£©ÊÇ¶Ô Java ÓïÑÔµÄÀàÐÍϵͳµÄÒ»ÖÖÀ©Õ¹£¬ÒÔÖ§³Ö´´½¨¿ÉÒÔ°´ÀàÐͽøÐвÎÊý»¯µÄÀà¡£¿ÉÒÔ°ÑÀàÐͲÎÊý¿´×÷ÊÇʹÓòÎÊý»¯ÀàÐÍʱָ¶¨µÄÀàÐ͵ÄÒ»¸öռλ·û£¬¾ÍÏñ·½·¨µÄÐÎʽ²ÎÊýÊÇÔËÐÐʱ´«µÝµÄÖµµÄռλ·ûÒ»Ñù¡£
¿ÉÒÔÔÚ¼¯ºÏ¿ò¼Ü£¨Collection framework£©Öп´µ½·ºÐ͵Ķ¯»ú¡£ÀýÈ磬MapÀàÔÊÐíÄúÏòÒ»¸öMapÌí ......

javaÏ̳߳ØThreadPoolExecut

JDK1.5ÖеÄÏ̳߳Ø(java.util.concurrent.ThreadPoolExecut
6
ÍƼö
ÔÚ¶àÏ̴߳óʦDoug LeaµÄ¹±Ï×Ï£¬ÔÚJDK1.5ÖмÓÈëÁËÐí¶à¶Ô²¢·¢ÌØÐÔµÄÖ§³Ö£¬ÀýÈ磺Ï̳߳ء£
Ò»¡¢¼ò½é
Ï̳߳ØÀàΪ java.util.concurrent.ThreadPoolExecutor£¬³£Óù¹Ôì·½·¨Îª£º
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepA ......

Java MailÎÞ·¨½âÎö´ø·ÖºÅµÄÊÕ¼þÈËÁбíµÄÎÊÌâ

Java MailÎÞ·¨½âÎö´ø·ÖºÅµÄÊÕ¼þÈËÁбíµÄÎÊÌâ
      ½ñÌìͬÊÂÅöµ½Ò»¸öÎÊÌ⣬ʹÓÃJAVA MAILÊÕÈ¡Óʼþʱ£¬Èç¹ûÊÕ¼þÈËÊǸöÁÐ±í£¬ÇÒÊÕ¼þÈËÁбíÊÇÒԷֺŽøÐзָîµÄ£¬ÔòJAVA MAIL¾Í»á³öÏÖÒì³££¬²»ÄÜÕý³£½âÎö£¬³é¿Õ¿´ÁËÒ»ÑÛ£¬×Ô¼ºÐ´Á˸ö¼òµ¥demo£¬ºÜ¼òµ¥£¬ÀýÈ磺
  @Test
public void te ......

Java µÄ £ÀOverride ±ê¼ÇµÄ¼æÈÝÇé¿ö

ÔÚ Java 5 »·¾³ÖУ¬Èç¹ûÓÃÀàAȥʵÏÖ½Ó¿ÚB (A implements B)£¬ÔÚ Java 5 µÄƽ̨Ï£¬A ʵÏֵķ½·¨ÃûÇ°ÊDz»ÄÜÌí¼Ó @Override ±ê¼ÇµÄ£¬·ñÔò»á±¨ÈçÏÂͼËùʾµÄ´íÎóÌáʾ¶øÎÞ·¨±àÒ룺
{{----}}16172
¾­¹ý³¢ÊÔºÍ×ܽᣬµÃ³öÏÂ±í¡£
Version
Java 5
Java 6
³¬ÀàÐÍÊÇ interface£¬×ÓÀàÐÍÖØдµÄ·½·¨ÄÜ·ñÌí¼Ó@Override ±ê¼Ç
·ñ
ÊÇ
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ