java exception javaÒì³£»ã×Ü(3)
java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception 770 - java.net.unknownhostException 771 - com.ibatis.struts.BeanActionException 772 - javax.servlet.jsp.JspException:Cannot find bean under name org.apache.struts.taglib.html.BEAN 773 - java.lang.NoClassDefFoundError:org apache commons lang UnhandledException 774 - org.hibernate.type.SerializationException:could not deserialize 775 - java.lang.IndexOutOfBoundsException 776 - java.lang.OutOfMemoryError:Java heap space 777 - org.hibernate.exception.JDBCConnectionException:Cannot open connection 778 - html:errors 779 - org.hibernate.TransactionException:Transaction not successfully started 780 - java.io.UTFDataFormatException: Invalid UTF8 encode 781 - Servlet action is not available 782 - java.lang.ClassCastException:java.lang.String 783 - jasperreportÖÐÎÄÂÒÂë 784 - html:error 785 - java.lang.NullPointerException 786 - java.lang.ClassCastException 787 - JasperException 788 - Ò쳣д·¨ 789 - HibernateÒì³£´¦Àí»úÖÆ
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
1. Java Ô´ÎļþÖÐ×î¶àÖ»ÄÜÓÐÒ»¸öpublicÀà,¶øÇÒÕâ¸öÀàµÄÀàÃûÒªºÍÎļþÃûÒ»ÖÂ.ÆäËûÀàµÄ¸öÊý²»ÏÞ¡£
2. ÃæÏò¶ÔÏó³ÌÐòÉè¼ÆµÄÌØÕ÷£¨·â×°ÐÔ£©£¨¼Ì³Ð£©£¨¶à̬ÐÔ£©
3. ½Ó¿ÚÊÇÓÉ£¨³éÏó·½·¨£©ºÍ£¨³£Á¿£©×é³ÉµÄÌØÊâÀà
4. ÓÃstaticÐÞÊεķ½·¨Ê ......
JavaÖеÄ×Ö·û¼¯±àÂëÈëÃÅ
ASCII¼°Ïà¹Ø±ê×¼
¡¡¡¡µØÇòÈ˶¼ÖªµÀASCII¾ÍÊÇÃÀ¹ú±ê×¼ÐÅÏ¢½»»»ÂëµÄËõд£¬Ò²ÖªµÀASCII¹æ¶¨ÓÃ7λ¶þ½øÖÆÊý×ÖÀ´±íʾӢÎÄ×Ö·û£¬ASCII±»¶¨Îª¹ú¼Ê±ê×¼Ö®ºóµÄ ´úºÅΪISO-646.ÓÉÓÚASCIIÂëֻʹÓÃÁË7¸ö¶þ½øÖÆ룬Ҳ¾ÍÊÇ˵һ¸ö×Ö½Ú¿ÉÒÔ±íʾµÄ256¸öÊý×ÖÖУ¬Ëü½öʹÓÃÁË0-127Õâ128¸öÂëλ£¬Ê£Ï嵀 ......
ʹÓÃBigInteger´óÈÝÁ¿ÔËËãÀà¼ÆËã100µÄ½×³Ë
Ò».Ò»°ãËã·¨(Ñ»·)
public class Test {
public static void main(String[] args) {
int result = 1;
for (int i = 1; i <= 100; i++) {
result *= i;
}
System.out.println(result);
}
}
Êä³ö½á¹ûΪ0£¬ÒòΪintÎÞ·¨±£´æÏÂ100µÄ½×³ËµÄ½á¹û£¬100µ ......
Ôںܶàʱºò£¬ÎÒÃÇÐèÒª×Ô¶¯Éú³ÉÓÀÔ¶²»»áÖظ´µÄID£¬Òò´ËÎÒÃÇ»áÓõ½ÒÔϵĴúÂëÀ´ÊµÏÖ£º
×¢Ò⣺ÐèÒª¼ÓÈëÁ½¸öapacheµÄ°ü,´úÂëºÍ°üÇë´Óhttp://www.blogjava.net/afei0922/articles/129589.html ÏÂÔØ
package cn.com.cinda.rtx.state;
import org.apache.commons.id.Hex;
public class RandomCode {
pub ......