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

Java¿ª·¢¿ò¼ÜÖ®

Ô­ÎĵØÖ·£ºhttp://hi.baidu.com/lin_zy/blog/item/bf14d21f6bb12ff6e1fe0bf1.html
¸ÅÄî
ʲôÊÇÒì³££¿
Òì³££¨exception£©Ó¦¸ÃÊÇÒ쳣ʼþ£¨exceptional event£©µÄËõд¡£
Òì³£¶¨Ò壺Òì³£ÊÇÒ»¸öÔÚ³ÌÐòÖ´ÐÐÆڼ䷢ÉúµÄʼþ£¬ËüÖжÏÕýÔÚÖ´ÐеijÌÐòµÄÕý³£µÄÖ¸ÁîÁ÷¡£
µ±ÔÚÒ»¸ö·½·¨Öз¢Éú´íÎóµÄʱºò£¬Õâ¸ö·½·¨´´½¨Ò»¸ö¶ÔÏ󣬲¢ÇÒ°ÑËü´«µÝ¸øÔËÐÐʱϵͳ¡£Õâ¸ö¶ÔÏó±»½Ð×öÒì³£¶ÔÏó£¬Ëü°üº¬ÁËÓйشíÎóµÄÐÅÏ¢£¬ÕâЩÐÅÏ¢°üÀ¨´íÎóµÄÀàÐͺÍÔÚ³ÌÐò·¢Éú´íÎóʱµÄ״̬¡£´´½¨Ò»¸ö´íÎó¶ÔÏó²¢°ÑËü´«µÝ¸øÔËÐÐʱϵͳ±»½Ð×öÅ׳öÒì³£¡£
Ò»¸ö·½·¨Å׳öÒì³£ºó£¬ÔËÐÐʱϵͳ¾Í»áÊÔ×ŲéÕÒһЩ·½·¨À´´¦ÀíËü¡£ÕâЩ´¦ÀíÒì³£µÄ¿ÉÄܵķ½·¨µÄ¼¯ºÏÊDZ»ÕûÀíÔÚÒ»ÆðµÄ·½·¨ÁÐ±í£¬ÕâЩ·½·¨Äܹ»±»·¢Éú´íÎóµÄ·½·¨µ÷Óá£Õâ¸ö·½·¨ÁÐ±í±»½Ð×ö¶ÑÕ»µ÷Óã¨call¡¡stack£©
ÔËÐÐʱϵͳËÑÑ°°üº¬Äܹ»´¦ÀíÒì³£µÄ´úÂë¿éµÄ·½·¨ËùÇëÇóµÄ¶ÑÕ»¡£Õâ¸ö´úÂë¿é½Ð×öÒì³£´¦ÀíÆ÷£¬ËÑÑ°Ê×ÏÈ´Ó·¢ÉúµÄ·½·¨¿ªÊ¼£¬È»ºóÒÀ´Î°´×ŵ÷Ó÷½·¨µÄµ¹Ðò¼ìË÷µ÷ÓöÑÕ»¡£µ±ÕÒµ½Ò»¸öÏàÓ¦µÄ´¦ÀíÆ÷ʱ£¬ÔËÐÐʱϵͳ¾Í°ÑÒì³£´«µÝ¸øÕâ¸ö´¦ÀíÆ÷¡£Ò»¸öÒì³£´¦ÀíÆ÷ÒªÊʵ±µØ¿¼ÂËÅ׳öµÄÒì³£¶ÔÏóµÄÀàÐͺÍÒì³£´¦ÀíÆ÷Ëù´¦ÀíµÄÒì³£µÄÀàÐÍÊÇ·ñÆ¥Åä¡£Òì³£±»²¶»ñÒÔºó£¬Òì³£´¦ÀíÆ÷¹Ø±Õ¡£Èç¹ûÔËÐÐʱϵͳËÑÑ°ÁËÕâ¸ö·½·¨µÄËùÓеĵ÷ÓöÑÕ»£¬¶øûÓÐÕÒµ½ÏàÓ¦µÄÒì³£´¦ÀíÆ÷¡£
ÔõôÉè¼ÆÒì³£¿ò¼Ü
ÈκεÄÒì³£¶¼ÊÇThrowableÀࣨΪºÎ²»Êǽӿڣ¿£¿£©£¬²¢ÇÒÔÚËü֮ϰüº¬Á½¸ö×ÖÀàError / Exception£¬¶øError½öÔÚµ±ÔÚJavaÐéÄâ»úÖз¢Éú¶¯Ì¬Á¬½Óʧ°Ü»òÆäËüµÄ¶¨Î»Ê§°ÜµÄʱºò£¬JavaÐéÄâ»úÅ׳öÒ»¸öError¶ÔÏó¡£µäÐ͵ļòÒ׳ÌÐò²»²¶»ñ»òÅ׳öErrors¶ÔÏó£¬Äã¿ÉÄÜÓÀÔ¶²»»áÓöµ½ÐèҪʵÀý»¯ErrorµÄÓ¦Óã¬ÄǾÍÈÃÎÒÃǹØÐÄÒ»ÏÂException
ExceptionÖбȽÏÖØÒªµÄ¾ÍÊÇRuntimeException£­ÔËÐÐʱÒì³££¨µ±È»Õâ¸öÃû×ÖÊÇ´æÔÚÕùÒéµÄ£¬ÒòΪÈκεÄÒì³£¶¼Ö»»á·¢ÉúÔÚÔËÐÐʱ£©£¬ÎªÊ²Ã´ËµÕâ¸öÀàʱºÜÖØÒªµÄÄØ£¿ÒòΪËüÖ±½Ó¹Øϵµ½ÄãµÄÒì³£¿ò¼ÜµÄÉè¼Æ£¬×Ðϸ¿´RuntimeException
A method is not required to declare in its throws clause any subclasses of RuntimeException that might be thrown during the execution of the method but not caught.
£­¿ÉÄÜÔÚÖ´Ðз½·¨ÆÚ¼äÅ׳öµ«Î´±»²¶»ñµÄ RuntimeException µÄÈκÎ×ÓÀ඼ÎÞÐèÔÚ throws ×Ó¾äÖнøÐÐÉùÃ÷¡£
Ò²¾ÍÊÇ˵ÄãµÄÓ¦ÓÃÓ¦¸Ã²»È¥“¹ØÐÄ”£¨Ëµ²»¹ØÐÄÊDz»·þÔðÈεģ¬µ«Ö»ÊÇÄã²»Ó¦¸ÃÊÔͼʵÀý»¯ËüµÄ×ÖÀࣩRuntimeException£¬¾ÍÈçͬÄã²»Ó¦¸Ã¹ØÐÄErrorµÄ²úÉ


Ïà¹ØÎĵµ£º

JavaÐéÄâ»ú ºÍ javaÐéÄâ»úϵĽø³Ì

Ò»¡¢Ê²Ã´ÊÇJavaÐéÄâ»ú
     µ±Äã̸µ½JavaÐéÄâ»úʱ£¬Äã¿ÉÄÜÊÇÖ¸£º
     1¡¢³éÏóµÄJavaÐéÄâ»ú¹æ·¶
     2¡¢Ò»¸ö¾ßÌåµÄJavaÐéÄâ»úʵÏÖ
     3¡¢Ò»¸öÔËÐеÄJavaÐéÄâ»úʵÀý
¶þ¡¢JavaÐéÄâ»úµÄÉúÃüÖÜÆÚ
     Ò»¸öÔËÐÐ ......

Serializable javaÐòÁл¯

Bean Serializable Interface µÄ½Ó¿ÚÈÃBEAN¿ÉÒÔ´®Ðл¯£¬½«Æä±ä³ÉÒ»¸ö¿É±£´æΪÒÔºóʹÓõĶþ½øÖÆÁ÷¡£µ±Ò»¸öBEAN±»ÏµÁл¯µ½´ÅÅÌÉÏ»òÕßÆäËûÈκεط½£¬Æä״̬±»±£´æÆðÀ´£¬ÆäÖеÄÊôÐÔÖµÒ²²»»á¸Ä±ä¡£ÔÚBEANµÄ¹æ·¶ÖУ¬JSP²¢Ã»ÓÐÒªÇóBEANʵÏÖSerializable½Ó¿Ú¡£µ«ÊÇ£¬Èç¹ûÄúÏ£Íû×Ô¼º¿ØÖÆÄúËù´´½¨µÄ×é¼þµÄserialization½ø³Ì£¬»òÕßÄúÏë ......

Java±à³ÌÄÇЩʶù2_·½·¨

Java±à³ÌÄÇЩʶù52—·½·¨ÉùÃ÷
µÚÆßÕÂ ·½·¨
·½·¨µÄÀ´Ô´
·½·¨µÄ¸ÅÄîÀ´Ô´ÓÚÊýѧÉϵĺ¯Êý£¬ÔÚÊýѧÖУ¬µ±Êý¾Ý¾ßÓÐÒ»¶¨µÄ¹æÂÉʱ£¬¾ÍÊÇÓÃÒ»¸öº¯ÊýÀ´´úÂë¸ÃÊý×ֵĹæÂÉ£¬ÀýÈçf£¨n£©=nÔò´ú±í1¡¢2¡¢3¡¢……ÕâÑùµÄÒ»¸öÊýÁС£ÔÚÊýѧÉÏnÊDzÎÊý£¬¶ÔÓÚÈ·¶¨µÄnÖµÖ»ÓÐÒ»¸öf£¨n£©µÄÖµºÍËü¶ÔÓ¦
·½·¨ÊÇÒ»×éΪÁËʵÏÖÌض¨¹¦Ä ......

JavaµÄ×¢Ê͹淶ÕûÀí

Ò»¡¢±³¾°
1¡¢µ±ÎÒÃǵÚÒ»´Î½Ó´¥Ä³¶Î´úÂ룬µ«ÓÖ±»ÒªÇóÔÚ¼«¶ÌµÄʱ¼äÄÚÓÐЧµØ·ÖÎöÕâ¶Î´úÂ룬ÎÒÃÇÐèҪʲôÑùµÄ×¢ÊÍÐÅÏ¢£¿
2¡¢ÔõôÑù±ÜÃâÎÒÃǵÄ×¢ÊÍÈß³¤¶øÇÒÁèÂÒ²»¿°ÄØ£¿
3¡¢ÔÚ¶àÈËЭͬ¿ª·¢¡¢Î¬»¤µÄ½ñÌ죬ÎÒÃÇÐèÒªÔõôÑùµÄ×¢ÊÍÀ´±£Ö¤¸ßÖÊ¡¢¸ß½»µÄ½øÐпª·¢ºÍά»¤¹¤×÷ÄØ£¿
¶þ¡¢ÒâÒå
³ÌÐòÖеÄ×¢ÊÍÊdzÌÐòÉè¼ÆÕßÓë³ÌÐòÔĶÁÕß ......

java½âÎöxmlÎļþËÄÖÖ·½Ê½

1.½éÉÜ
1£©DOM£¨JAXP Crimson½âÎöÆ÷£© 
      DOMÊÇÓÃÓëƽ̨ºÍÓïÑÔÎ޹صķ½Ê½±íʾXMLÎĵµµÄ¹Ù·½W3C±ê×¼¡£DOMÊÇÒÔ²ã´Î½á¹¹×éÖ¯µÄ½Úµã»òÐÅϢƬ¶ÏµÄ¼¯ºÏ¡£Õâ¸ö²ã´Î½á¹¹ÔÊÐí¿ª·¢ÈËÔ±ÔÚÊ÷ÖÐÑ°ÕÒÌض¨ÐÅÏ¢¡£·ÖÎö¸Ã½á¹¹Í¨³£ÐèÒª¼ÓÔØÕû¸öÎĵµºÍ¹¹Ôì²ã´Î½á¹¹£¬È»ºó²ÅÄÜ×öÈκι¤×÷¡£ÓÉÓÚËüÊÇ»ùÓ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ