ÈÏʶjavaÖеÄÔËÐÐʱÒì³£
JavaÖÐÒì³£Ò»°ã·ÖΪ3À࣬ϱ߽éÉÜÏ£¬½ö½öÊǸöÈËÀí½â¡£
µÚÒ»ÖÖÊDZàÒëÆÚÒì³££¬»òÕß½Ðcheck Exception¡£
±àÒëÆÚÒì³£µÄÌØµã£º
1.ϵͳҪÇó±ØÐëÔÚ³ÌÐòÀï×ö³ö´¦Àí£¬·ñÔò±¨±àÒë´íÎ󣬱àÒëÎÞ·¨Í¨¹ý£¬Ò²¾ÍÊÇËµÏµÍ³Ç¿ÖÆÒªÇó´¦Àí£¬¶ÔÓÚ´¦Àí·½Ê½£¬²»ÍâºõÖ±½Ócatch´¦ÀíºÍÅ׳öµ½Íâ²ã£¬µ«ÊÇ×îÖÕ»¹ÊÇÒª´¦ÀíµÄ¡£
2.Óû§×Ô¶¨ÒåÒ»¸ö±àÒëÆÚÒì³£µÄ·½·¨£¬Ö±½Ó¼Ì³ÐExceptionÀà »òÆä³¬ÀàThrowable¡£
µÚ¶þÖÖÊÇÔËÐÐʱÒì³£
ÔËÐÐʱÒì³£µÄÌØµã£º
1.ÔÚϵͳÔËÐÐÆÚ¼ä£¬ÓÉJAVAÐéÄâ»úÅ׳ö£¬¶øÇÒÔËÐÐʱÒì³£²»ÒªÇó³ÌÐòÔÚ±àÒëÆÚÇ¿ÖÆ´¦Àí£¬Ò²¾ÍÊÇ˵¼´Ê¹´úÂëÖÐÓÐЩµØ·½ºÜÃ÷ÏÔ»áÅ׳öÔËÐÐʱÒì³££¬Ò²Ö»ÓÐϵͳÔËÐÐʱ²Å»áÅ׳ö¡£
2.Óû§Òª×Ô¶¨ÒåÔËÐÐʱÒì³££¬±ØÐë¼Ì³Ð×ÔRuntimeExceptionÀ࣬JDKÀàÄÚÖÃÁ˶Լ̳Ð×ÔRuntimeExceptionµÄÒì³£ÔÚ±àÒëÆÚ²»½øÐмì²é¡£ÈçÎÒÃdz£¼ûµÄ¿ÕÖ¸ÕëÒì³££ºNullPointerException£¬×ÜÊÇÔÚϵͳÔËÐÐʱ±»Å׳ö¡£
Ç°ÃæÁ½ÀàÒì³£¶¼ÊǶ¼¿ÉÒÔ»Ö¸´µÄÒì³£¡£Í¨¹ýÐ޸ĴúÂ룬¿ÉÒÔ±ÜÃâÒì³£µÄ·¢Éú¡£
µÚÈýÖÖÊÇ´íÎóÒì³£¡£
ÕâÀàÒì³£´ú±í´íÎó£¬Ö¸³ÌÐòÎÞ·¨»Ö¸´µÄÒì³£Çé¿ö¡£¶ÔÓÚËùÓдíÎóÀàÐÍÒÔ¼°Æä×ÓÀ࣬¶¼²»ÒªÇó³ÌÐò½øÐд¦Àí¡£³£¼ûµÄErrorÀàÀýÈçÄÚ´æÒç³öStackOverflowErrorµÈ¡£
Ïà¹ØÎĵµ£º
String usrHome = System.getProperty("user.home");
ÏÂÃæÊÇSystemµÄ²ÎÊýÁбí
Key Meaning
------------------- ------------------------------
"file.separato ......
1.AJAX»ù´¡ÖªÊ¶_Ñ¡ÔñÌâ
1. AjaxÓÐËÄÖÖ¼¼Êõ×é³É£ºDOM,CSS,JavaScript£¬XmlHttpRequestÖпØÖÆÎĵµ½á¹¹µÄÊÇ£º£¨ £©
A DOM
B CSS
C javascript
D XMLHttpRequest
²Î¿¼´ð°¸£ºA
2. ÔÚAjaxµÄËÄÖÖ¼¼ÊõÖУ¬¿ØÖÆÍ¨ÐŵÄÊÇÄÄÒ»¸ö£¿£¨ £©
A DOM
B CSS
C javasc ......
1. StrutsÌåϵ½á¹¹ÊµÏÖÁËMVCÉè¼ÆÄ£Ê½µÄ¸ÅÄÄÇôËü½«ÒÔÏÂÑ¡ÏîÖиø³öµÄʲô·Ö±ðÓ³ÉäΪwebÓ¦ÓÃÖеÄ×é¼þ£¿£¨ £©
A View
B Model
C ActionServlet
D Action
E ActionMapping
F Controller
²Î¿¼´ð°¸£ºABF
2. ÔÚStrutsÌåϵ½á¹¹ÖУ¬ÒÔÏÂÄĸöÓÉ´ú±íϵͳ״̬ºÍÉÌÒµÂß¼µÄActionÀ´¹¹½¨ ......
Ò»¡¢Spring»ù´¡ÖªÊ¶¼°IOC_Ñ¡ÔñÌâ
1. ÏÂÃæ¹ØÓÚspringÃèÊö´íÎóµÄÊÇ£º£¨ £©
A SpringÖ§³Ö¿É²åÈëµÄÊÂÎñ¹ÜÀíÆ÷£¬Ê¹ÊÂÎñ»®·Ö¸üÇáËÉ£¬Í¬Ê±ÎÞÐè´¦Àíµ×²ãµÄÎÊÌâ¡£
B SpringÊÂÎñ¹ÜÀíµÄͨÓóéÏó²ã»¹°üÀ¨JTA²ßÂÔºÍÒ»¸öJDBC DataSource¡£
C ÓëJTA»òEJB CMTÒ»Ñù£¬SpringµÄÊÂÎñÖ§³ÖÒÀÀµÓÚJava EE»·¾³¡£
D Spr ......
Java³ÉÔ±µÄĬÈÏ·ÃÎÊ¿ØÖÆ
ÎÒ¶¥¶ÔÓÚÒ»¸öClassµÄ³ÉÔ±±äÁ¿»ò³ÉÔ±º¯Êý£¬Èç¹û²»ÓÃpublic, protected, privateÖеÄÈκÎÒ»¸öÐÞÊΣ¬ÄÇô¸Ã³ÉÔ±»ñµÃ“ĬÈÏ·ÃÎÊ¿ØÖÆ”¼¶±ð£¬¼´package access £¨°ü·ÃÎÊ£©¡£
ÊôÓÚpackage accessµÄ³ÉÔ±¿ÉÒÔ±»Í¬Ò»¸ö°üÖÐµÄÆäËûÀà·ÃÎÊ£¬µ«²»Äܱ»ÆäËû°üµÄÀà·ÃÎÊ¡£
° ......