JVM ¶ÔJavaÒì³£µÄ´¦ÀíÔÀí
×î³õÎÒÃÇÓà Java д JSP µÄʱºò£¬¼¸ºõ¿ÉÒÔ²»´¥¼°Òì³££¬ÒòΪ Servlet ÈÝÆ÷»á°Ñ API Å׳öµÄÒì³£°ü×°³É
ServletException ¶ª¸øÈÝÆ÷È¥´¦Àí¡£ÔÙºóÀ´Ó¦Ó÷ֲ㣬´úÂëÖÐÒª´¦ÀíµÄÒì³£±ã¶àÁË£¬Ò»°ã»áת»»³É×Ô¶¨ÒåµÄÒµÎñÒì³£À࣬ÓÃ
try-catch-throw
customerException-finally¡£ÔÙµ½Èç½ñ¸÷ÖÖ¿ò¼ÜÈÕÕé³ÉÊ죬´úÂëÖÐÏÔʽµÄÒì³£´¦ÀíÓÖ½¥½¥ÉÙÁËЩ£¬½èÖúÓÚ AOP
ºáÐУ¬Òì³£¶ÔÒµÎñµÄÓ°ÏìÃèÊö±»ÒÆÈëµ½ÁËÅäÖÃÎļþÖÐÁË£¬ÀýÈ磬ÊÂÎï´¦Àí¡¢È¨Ï޵ĿØÖƵȡ£
ÕâÆÄÓÐЩÏñÊÖ»úµÄ·¢Õ¹£¬µ±Í¨Ðż¼Êõ²»Éõ·¢´ïµÄʱºò£¬ÊÖÀï×¥µÄÊÇשͷ£¬ÐźÅÊÇÄ£ÄâµÄ¡£ºóÀ´ÂýÂýÊÝÉí³ÉÁ½Èý¸ùÊÖÖ¸´óС£¬ÉõÖÁÊǾÍÒ»Ö§±ÊËÆµÄ£¬¿ÉÈç½ñÐÅÏ¢Á¿´óÁË£¬ÆÁĻҪ´ó£¬ÔÙÅäÉÏ QWERT ¼üÅÌ£¬»úÉí×ÔÈ»¾Í·Ê˶ÁË¡£
µ±È»ÓëÊÖ»úµÄ¸öÍ·±äǨÂÔÓв»Í¬µÄÊÇ£¬ÈÎÆ¾ÄãÔõô¶Ô´ý Java ÖÐÒì³££¬ÇÐÈë AOP Ò²ºÃ£¬ÔÚ JVM Öд¦ÀíÒì³£µÄÄÚÔÚ»úÖÆÊ¼ÖÕδ±ä¡£
˵µ½ Java Òì³££¬ÎÞÍâºõ¾ÍÊÇ try¡¢catch¡¢finally¡¢throw¡¢throws Õâô¼¸¸ö¹Ø¼ü×Ö£¬ÕâЩ¸öµÄÓ÷¨ÊÇû±ØÒªÔÚÕâÀï½²ÁË¡£ÎÒÃÇÕâÀïÖ÷Òª¹Ø¼üһϠcatch ºÍ finally ÊÇÈçºÎÔÚ±àÒëºóµÄ class ×Ö½ÚÂëÖеġ£
Òì³£µÄÅ׳öÓë²¶»ñ£¬Catch ×Ó¾äµÄ±íÏÖ£¬À´¿´¿´Ò»¶Î Java ´úÂë¼°Éú³ÉµÄÏàÓ¦×Ö½ÚÂëÖ¸Áî¡£
package
com.unmi;
import
java.io.UnsupportedEncodingException;
public
class
AboutCatch {
public
static
void
main(String[] args){
try
{
transfer("JVM ¶Ô Java Òì³£µÄ´¦Àí"
,"gbk"
);
} catch
(Exception e) {
//e.printStackTrace();
}
}
//×Ö·û¼¯×ª»»µÄ·½·¨
&nb
Ïà¹ØÎĵµ£º
¹ØÓÚJaybird-2.1.6JDK_1.5µÄʹÓ÷½·¨ÈçÏ£º
Ê×ÏÈ£º°²×°Jaybird
µÚÒ»²½£º½«¸ùĿ¼ÏµÄ
jaybird21.dll,
GDS32.DLL,
icudt30.dll,
icuuc30.dll,
&nbs ......
ת×Ôhttp://www.cnblogs.com/liwp_stephen/archive/2008/08/03/1259385.html£¬·Ç³£¸Ðл×÷ÕߵķÖÏí
ʹÓÃAxis±àдWebService±È½Ï¼òµ¥£¬¾ÍÎÒµÄÀí½â£¬WebServiceµÄʵÏÖ´úÂëºÍ±àдJava´úÂëÆäʵûÓÐÊ²Ã´Çø±ð£¬Ö÷ÒªÊǽ«ÄÄЩJavaÀà·¢²¼ÎªWebService¡£ÏÂÃæÊÇÒ»¸ö´Ó±àд²âÊÔÀý× ......
ÔÚ¿´µ½Thinking in java µÚËÄÕÂʱ³õʼ»¯Ïà¹ØÎÊÌâµÄʱºò£¬ÎÒÃDz»ÓɵذÑ×¢ÒâÁ¦ÒƵ½¹¹ÔìÆ÷ÉÏ¡£ÕâÀï×ö¸ö¼òµ¥µÄ×ܽᣬ±ãÓÚ¸ßÊÖÖ¸ÕýÒÔ¼°×Ô¼ºÎ¹ʡ£
Ê×Ïȹ¹ÔìÆ÷ÊÇÒª¹¹ÔìÒ»¸ö¶«Î÷{¹¹Ôì¶ÔÏó£¨ÊµÀý£©}²¢¶ÔÆä³õʼ»¯¡£Ö®ËùÒÔ ......
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 ......