java»ù´¡×ܽá
¼Ì³Ð(inheritance)
¼Ì³ÐÊÇʹÓÃÒÑ´æÔÚµÄÀàµÄ¶¨Òå×÷Ϊ»ù´¡½¨Á¢ÐÂÀàµÄ¼¼Êõ£¬ÐÂÀàµÄ¶¨Òå¿ÉÒÔÔö¼ÓеÄÊý¾Ý»òÐµĹ¦ÄÜ£¬Ò²¿ÉÒÔÓø¸ÀàµÄ¹¦ÄÜ£¬µ«²»ÄÜÑ¡ÔñÐԵؼ̳и¸Àà¡£ÕâÖÖ¼¼ÊõʹµÃ¸´ÓÃÒÔÇ°µÄ´úÂë·Ç³£ÈÝÒ×£¬Äܹ»´ó´óËõ¶Ì¿ª·¢ÖÜÆÚ£¬½µµÍ¿ª·¢·ÑÓᣱÈÈç¿ÉÒÔÏȶ¨ÒåÒ»¸öÀà½Ð³µ£¬³µÓÐÒÔÏÂÊôÐÔ£º³µÌå´óС£¬ÑÕÉ«£¬·½ÏòÅÌ£¬ÂÛ̳£¬¶øÓÖÓɳµÕâ¸öÀàÅÉÉú³ö½Î³µºÍ¿¨³µÁ½¸öÀ࣬Ϊ½Î³µÌí¼ÓÒ»¸öСºó±¸Ï䣬¶øΪ¿¨³µÌí¼ÓÒ»¸ö´ó»õÏä¡£
·â×°(encapsulation)
ÀàʹµÃÊý¾ÝºÍ¶ÔÊý¾ÝµÄ²Ù×÷¼¯³ÉÔÚÒ»Æ𣬴Ӷø¶ÔʹÓøÃÀàµÄÆäËûÈËÀ´Ëµ£¬¿ÉÒÔ²»¹ÜËüµÄʵÏÖ·½·¨£¬¶øÖ»¹ÜÓÃËüµÄ¹¦ÄÜ£¬´Ó¶øʵÏÖËùνµÄÐÅÏ¢Òþ²Ø¡£
¶à̬(polymorphism)
¶à̬ÓÖ·ÖΪÉè¼Æʱ¶à̬ºÍÔËÐÐʱ¶à̬£¬ÀýÈçÖØÔØÓÖ±»³ÆΪÉè¼Æʱ¶à̬£¬¶ø¶ÔÓÚ¸²¸Ç»ò¼Ì³ÐµÄ·½·¨£¬JAVAÔËÐÐʱϵͳ¸ù¾Ýµ÷Óø÷½·¨µÄʵÀýµÄÀàÐÍÀ´¾ö¶¨Ñ¡Ôñµ÷ÓÃÄĸö·½·¨Ôò±»³ÆΪÔËÐÐʱ¶à̬¡£×ܶøÑÔÖ®£¬ÃæÏò¶ÔÏóµÄÉè¼ÆµÄµäÐÍÌصã¾ÍÊǼ̳У¬·â×°ºÍ¶à̬£¬ÕâЩÌصãÒ²ÊÇÃæÏò¶ÔÏóÖ®ËùÒÔÄÜÈç´ËÊ¢ÐеĹؼüËùÔÚ¡£
µ¥¼Ì³ÐÓë¶à¼Ì³Ð
JAVA²»Ö§³Ö¶àÖؼ̳У¬µ¥¼Ì³ÐʹJAVAµÄ¼Ì³Ð¹ØϵºÜ¼òµ¥£¬Ò»¸öÀàÖ»ÄÜÓÐÒ»¸ö¸¸À࣬Ò×ÓÚ¹ÜÀí³ÌÐò£¬Í¬Ê±Ò»¸öÀà¿ÉÒÔʵÏÖ¶à¸ö½Ó¿Ú£¬´Ó¶ø¿Ë·þµ¥¼Ì³ÐµÄȱµã¡£
½Ó¿ÚµÄ¶¨ÒåºÍÀàµÄ¶¨ÒåºÜÏàËÆ£¬Ö»Êǹؼü×Ö²»Í¬£¬¹Ø¼ü×ÖΪinterface¡£¸ñʽÈçÏ£º
interface ½Ó¿ÚÃû
{
}
ÉÏÃæµÄ´óÀ¨ºÅÖÐΪ½Ó¿ÚÌå¡£½Ó¿ÚÌåÖаüº¬³ÉÔ±±äÁ¿¶¨ÒåºÍ·½·¨¶¨ÒåÁ½²¿·Ö¡£
½Ó¿ÚÌåÖÐÖ»½øÐз½·¨µÄÉùÃ÷£¬²»ÔÊÐíÌṩ·½·¨µÄʵÏÖ¡£ËùÒÔÔÚ¸ñʽÉÏÖ»´æÔÚ·½·¨ÉùÃ÷£¬Êµ¼ÊÉÏûÓз½·¨Ì壬¶ø·½·¨ÌåÒªÔÚʵÏÖµÄÀàÖÐÔÙÈ¥¾ßÌ嶨Òå¡£
»¹ÓÐÒ»µãÐèҪ˵Ã÷µÄÊÇ£ºÈç¹ûÒ»¸öÀàʵÏÖÁËij¸ö½Ó¿Ú£¬¾Í±ØÐëҪʵÏÖÕâ¸ö½Ó¿ÚµÄËùÓз½·¨£¬¼´Ê¹ÊµÔÚûÓÐÄÚÈÝÖ»ÊÇÒ»¸ö¿ÕµÄ·½·¨ÌåÒ²±ØÐëҪд¡£¶øÇÒÿ¸ö·½·¨¶¼Ä¬ÈÏÊÇpublicµÄ£¬ËùÒÔʵÏÖʱ´úÂëÒ»¶¨ÒªÓÃpublic×öÐÞÊΣ¬²ÎÊý¸öÊý£¬ÀàÐÍÒÔ¼°·µ»ØÖµµÄÀàÐͶ¼±ØÐëÓë½Ó¿ÚÖеÄÉùÃ÷ÏàÒ»Ö¡£
ÀýÈ磺
interface Runable
{
}
µ±Ä³¸öÀàҪʵÏÖÕâ¸ö½Ó¿Úʱ£¬¾ÍÓà imlements À´ÉùÃ÷¡£
ÀýÈ磬ÎÒÃÇÏà×öÒ»¸ö¶àÏ̵߳ÄÀý×Ó£¬ÄÇô¾Í¿ÉÓÐÁ½ÖÖʵÏÖ·½Ê½£¬Ò»ÖÖÊÇͨ¹ý¶¨ÒåÒ»¸öThreadÀàµÄ×ÓÀàÀ´Ê
Ïà¹ØÎĵµ£º
BufferedReader:
Read text from a character-input
stream, buffering characters so as to provide for the
efficient reading of characters, arrays, and ......
תÔØ×Ô£ºwww.csdn.net
2003 Äê 1 ÔÂ
ÔÚ¿ªÔ´ÊÀ½çÖУ¬ÓÐÁ½ÌױȽÏÓÐÓ°ÏìµÄAPI¿É¹©Ê¹Óã¬Ò»¸öÊÇPOI£¬Ò»¸öÊÇjExcelAPI¡£ÆäÖÐjExcelAPIÊÇÒ»¸öº«¹ú³ÌÐòÔ±µÄ×÷Æ·£¬ËäȻûÓÐPOIÄÇÑùѪͳ¸ß¹ó£¬µ«ÊÇÔÚ±ÊÕßµÄʹÓùý³ÌÖУ¬¸Ð¾õ¼òµ¥·½±ã£¬¶ÔÖÐÎÄÖ§³Ö·Ç³£ºÃ£¬¹¦ÄÜÒ²±È½ÏÇ¿´ó¡£ËüµÄÏÂÔصØÖ·ÊÇ£ºhttp://www.andykhan.com/jexcelapi/ µ±Ç ......
/**
* @param args
*/
public static void main(String[] args) {
long time1 = System.currentTimeMillis();
long time2 = System.currentTimeMillis();
while (true) {
while ((time1 - time2) < 30)
& ......
override¿ÉÒÔ·ÒëΪ¸²¸Ç£¬´Ó×ÖÃæ¾Í¿ÉÒÔÖªµÀ£¬ËüÊǸ²¸ÇÁËÒ»¸ö·½·¨²¢ÇÒ¶ÔÆäÖØд£¬ÒÔÇó´ïµ½²»Í¬µÄ×÷Ó᣶ÔÎÒÃÇÀ´Ëµ×îÊìϤµÄ¸²¸Ç¾ÍÊǶԽӿڷ½·¨µÄʵÏÖ£¬ÔÚ½Ó¿ÚÖÐÒ»°ãÖ»ÊǶԷ½·¨½øÐÐÁËÉùÃ÷£¬¶øÎÒÃÇÔÚʵÏÖʱ£¬¾ÍÐèҪʵÏÖ½Ó¿ÚÉùÃ÷µÄËùÓз½·¨¡£³ýÁËÕâ¸öµäÐ͵ÄÓ÷¨ÒÔÍ⣬ÎÒÃÇÔڼ̳ÐÖÐÒ²¿ÉÄÜ»áÔÚ×ÓÀา¸Ç¸¸À ......
ÔÚJAVAÖУ¬ÓÐÁù¸ö²»Í¬µÄµØ·½¿ÉÒÔ´æ´¢Êý¾Ý£º
1. ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ²»Í¬ÓÚÆäËû´æ´¢ÇøµÄµØ·½——´¦ÀíÆ÷ÄÚ²¿¡£µ«ÊǼĴæÆ÷µÄÊýÁ¿¼«ÆäÓÐÏÞ£¬ËùÒԼĴæÆ÷ÓɱàÒëÆ÷¸ù¾ÝÐèÇó½øÐзÖÅä¡£Äã²»ÄÜÖ±½Ó¿ØÖÆ £¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2. ¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAMÖУ¬µ ......