java³ý·¨µÄÏÝÚå
Java³ý·¨ÔËËãµÄÏÝÚå
³ý·¨ÔËËã˲»»á°¡£¬ºÜ¶àÈ˲»Ð¼Ò»¹Ë£¬ÕæÊÇÎÞÖªÕßÎÞη£¡
Æäʵ³ý·¨¡¢ÇóÓàÔËËãÓÐһЩÏÝÚå¡£Ò»µ©¼ÆËã·¢ÉúÁËÎÊÌ⣬»¹ºÜ²»ºÃÕÒ¡£²»ºÃÕÒµÄÔÒòÖ÷ÒªÊÇÎÊÌâµÄżȻÐÔÌ«Ç¿£¬Èç¹ûÄãÖªµÀ¿ÉÄÜ·¢ÉúʲôÎÊÌ⣬ÄãµÄ´úÂë¾Í¿ÉÒÔдµÃ¸ü°²È«¡£
Êýѧ³ý·¨¹æ¶¨£¬0²»ÄÜ×ö³ýÊý£¬ÒòΪ»áµÃµ½Ò»¸öÎÞÇî´óÊý¾Ý¡£
Î÷Ãæ¿´¿´JavaÖÐÈçºÎ´¦ÀíÕâЩÌØÊâÇé¿ö£º
1¡¢ÕûÊýµÄ³ý·¨£º
0×ö³ýÊýÅ×ÔËÐÐʱÒì³££»Á½ÕûÊýÉÌ»á×öÈ¡ÕûÔËË㣬Float»òDoubleÓëÒ»¸öÕûÊý×ö³ý·¨ÔËË㣬ÔòÉÌλFloat»òÕßDoubleÀàÐÍ£¬ÀýÈ磺
System.out.println("------------IntÏà¹Ø³ý·¨----------");
System.out.println("12/10="+12/10);
System.out.println("12f/10="+12f/10);
System.out.println("12d/10="+12d/10);
System.out.println("12/10f="+12/10d);
System.out.println("12/10d="+12/10f);
------------IntÏà¹Ø³ý·¨----------
12/10=1
12f/10=1.2
12d/10=1.2
12/10f=1.2
12/10d=1.2
2¡¢Double£¨»òFloat£©³ý·¨ÔËË㣺
0¿ÉÒÔ×ö³ýÊý£¬µÃµ½µÄÊÇÒ»¸ö·ÖÕý¸ºµÄÎÞÇî´ó£»µ±Á½¸öÊýµÄ¾ø¶ÔÖµ¾ùΪ0.0ʱºò£¬É̵ÈÓÚNaN¡£µ±0.0/x£¬x²»µÈ0.0ʱºò£¬µÃµ½µÄÒ»¸ö´ø·ûºÅλ0.0£º
package lavasoft.zerotest;
/**
* ¸¡µãÐÍÊý¾ÝµÄ³ý·¨ÔËËã²âÊÔ
*
* @author leizhimin 2009-12-21 9:00:37
*/
public class TestZero {
public static void main(String[] args) {
System.out.println("------------DoubleÐÍ----------");
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
½ñÌìÎÒ¸´Ï°ÁË·´ÉäºÍÄÚʡ֪ʶ£º
·´É䣺Filed£¬
1. ÐèÇ󣺶ÔÓÚ¸ø¶¨µÄ¶ÔÏóµÄÊôÐÔ½øÐи³Öµ£¬
2. ʹÓ÷½·¨£ºÒÑÖªÀàµÄÈ«ÀàÃû£¬»ñÈ¡¶ÔÓ¦µÄclass¶ÔÏ󣬻ñÈ¡Òª»ñÈ¡µÄFiled¡£
1. &nb ......
1. ¼òµ¥±êÇ©£¬±êÇ©´¦ÀíÀàҪʵÏÖsimpletag£¨javax.servlet. jsp.tagext.jspTag ½Ó¿Ú£©
a) Õý³£±êÇ©¡¢¿Õ±êÇ©£¬Ç¶Ì×±êÇ©£¬
2. Si ......
JavaµÄºËÐÄAPIÊǷdz£ÅÓ´óµÄ,Õâ¸ø¿ª·¢ÕßÀ´Ëµ´øÀ´Á˺ܴóµÄ·½±ã£¬¾³£ÈËÓÐÆÀÂÛ,javaÈóÌÐòÔ±±äɵ¡£
µ«ÊÇһЩÄÚÈÝÎÒÈÏΪÊDZØÐëÕÆÎյģ¬·ñÔò²»¿ÉÒÔÊìÁ·ÔËÓÃjava£¬Ò²²»»áʹÓþͺÜÄÑ°ìÁË¡£
1¡¢java.lang°üϵÄ80£¥ÒÔÉϵÄÀàµÄ¹¦ÄܵÄÁé»îÔËÓá£
2¡¢java.util°üϵÄ80£¥ÒÔÉϵÄÀàµÄÁé»îÔËÓã¬ÌرðÊǼ¯ºÏÀàÌåϵ¡¢Õý¹æ±í´ïʽ¡¢Ê±¼ä¡¢Ê ......