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

JavaÓïÑÔÖйؼü×Ö½²½â£¨Ò»£©strictfpµÄÓÃ;

×ÔJava2ÒÔÀ´£¬JavaÓïÑÔÔö¼ÓÁËÒ»¸ö¹Ø¼ü×Östrictfp£¬ËäÈ»Õâ¸ö¹Ø¼ü×ÖÔÚ´ó¶àÊý³¡ºÏ±È½ÏÉÙÓ㬵«ÊÇ»¹ÊÇÓбØÒªÁ˽âһϡ£
strictfp µÄÒâ˼ÊÇFP-strict£¬Ò²¾ÍÊÇ˵¾«È·¸¡µãµÄÒâ˼¡£ÔÚJavaÐéÄâ»ú½øÐи¡µãÔËËãʱ£¬Èç¹ûûÓÐÖ¸¶¨strictfp¹Ø¼ü×Öʱ£¬JavaµÄ±àÒëÆ÷ÒÔ¼°ÔËÐл·¾³ÔÚ¶Ô¸¡µãÔËËãµÄ±í´ïʽÊDzÉÈ¡Ò»ÖÖ½üËÆÓÚÎÒÐÐÎÒËصÄÐÐΪÀ´Íê³ÉÕâЩ²Ù×÷£¬ÒÔÖÂÓڵõ½µÄ½á¹ûÍùÍùÎÞ·¨ÁîÄãÂúÒâ¡£¶øÒ»µ©Ê¹ÓÃÁËstrictfpÀ´ÉùÃ÷Ò»¸öÀà¡¢½Ó¿Ú»òÕß·½·¨Ê±£¬ÄÇôËùÉùÃ÷µÄ·¶Î§ÄÚJavaµÄ±àÒëÆ÷ÒÔ¼°ÔËÐл·¾³»áÍêÈ«ÒÀÕÕ¸¡µã¹æ·¶IEEE-754À´Ö´ÐС£Òò´ËÈç¹ûÄãÏëÈÃÄãµÄ¸¡µãÔËËã¸ü¼Ó¾«È·£¬¶øÇÒ²»»áÒòΪ²»Í¬µÄÓ²¼þƽ̨ËùÖ´ÐеĽá¹û²»Ò»ÖµĻ°£¬ÄǾÍÇëÓùؼü×Östrictfp¡£
Äã¿ÉÒÔ½«Ò»¸öÀà¡¢½Ó¿ÚÒÔ¼°·½·¨ÉùÃ÷Ϊstrictfp£¬µ«ÊDz»ÔÊÐí¶Ô½Ó¿ÚÖеķ½·¨ÒÔ¼°¹¹Ô캯ÊýÉùÃ÷strictfp¹Ø¼ü×Ö£¬ÀýÈçÏÂÃæµÄ´úÂ룺
1. ºÏ·¨µÄʹÓùؼü×Östrictfp
strictfp interface A {}
public strictfp class FpDemo1 {
    strictfp void f() {}
}
2. ´íÎóµÄʹÓ÷½·¨
interface A {
    strictfp void f();
}
public class FpDemo2 {
    strictfp FpDemo2() {}
}
Ò»µ©Ê¹ÓÃÁ˹ؼü×ÖstrictfpÀ´ÉùÃ÷ij¸öÀà¡¢½Ó¿Ú»òÕß·½·¨Ê±£¬ÄÇôÔÚÕâ¸ö¹Ø¼ü×ÖËùÉùÃ÷µÄ·¶Î§ÄÚËùÓи¡µãÔËË㶼ÊǾ«È·µÄ£¬·ûºÏIEEE-754¹æ·¶µÄ¡£ÀýÈçÒ»¸öÀà±»ÉùÃ÷Ϊstrictfp£¬ÄÇô¸ÃÀàÖÐËùÓеķ½·¨¶¼ÊÇstrictfpµÄ¡£


Ïà¹ØÎĵµ£º

JavaÄÚ´æÒç³ö

´ÓÎïÀíÉϽ²£¬¶ÑÕ»¾ÍÊÇÒ»¶ÎÁ¬Ðø·ÖÅäµÄÄÚ´æ¿Õ¼ä¡£ÔÚÒ»¸ö³ÌÐòÖУ¬»áÉùÃ÷¸÷ÖÖ±äÁ¿¡£¾²Ì¬È«¾Ö±äÁ¿ÊÇλÓÚÊý¾Ý¶Î²¢ÇÒÔÚ³ÌÐò¿ªÊ¼µÄʱºò¾Í±»¼ÓÔØ¡£¶ø³ÌÐòµÄ¶¯Ì¬µÄ¾Ö²¿±äÁ¿Ôò·ÖÅäÔÚ¶ÑÕ»ÀïÃæ¡£
JVM¹ÜÀíÁ½ÖÖÀàÐ͵ÄÄڴ棬¶ÑºÍ·Ç¶Ñ¡£¶ÑÊǸø¿ª·¢ÈËÔ±ÓõÄÉÏÃæ˵µÄ¾ÍÊÇ£¬ÊÇÔÚJVMÆô¶¯Ê±´´½¨£»·Ç¶ÑÊÇÁô¸øJVM×Ô¼ºÓõģ¬ÓÃÀ´´æ·ÅÀàµÄÐÅÏ¢µÄ¡£Ëüº ......

JavaÈ¡µÃ´úÂëËùÔÚÐкŵķ½·¨

ÓÃCµÄÈËÒ»¶¨ÖªµÀ__FILE__ºÍ__LINE__,µ«ÊÇJavaÖÐ ²¢Ã»ÓÐÕâÑùµÄ¶¨Ò壬ÓÐʱºòµ÷ÊÔ¶àÏ߳̾ͺܲ»·½±ã£¬Ã»°ì·¨£¬×Ô¼º¶¯ÊÖ£¬·áÒÂ×ãʳ~ÓÃÏÂÃæµÄº¯ÊýÈ¡µÃµ±Ç°Ðкš£
º¯Êý£º
/**
*µÃµ½ExceptionËùÔÚ´úÂëµÄÐÐÊý
*Èç¹ûûÓÐÐÐÐÅÏ¢,·µ»Ø-1
*/
public static int getLineNumber(Exception e){
StackTraceElement[] trace =e.getStac ......

ת£ºJavaѧϰ·Ïßͼ£¬×¨ÎªÐÂÊÖ¶¨ÖƵÄJavaѧϰ¼Æ»®½¨Òé

ת×Ô£ºhttp://tieba.baidu.com/f?kz=692446591
ÔõôѧϰJava£¬ÕâÊǺܶàÐÂÊÖ¾­³£»áÎÊÎÒµÄÎÊÌ⣬ÏÖÔÚÎÒ¼òµ¥ÃèÊöÏÂÒ»¸öJava³õѧÕßµ½¾ÍҵҪѧµ½µÄһЩ¶«Î÷£º
    Ê×ÏÈÒªÃ÷°×JavaÌåϵÉè¼Æµ½µÃÈý¸ö·½Ã棺J2SE,J2EE,J2ME£¨KJAVA£©¡£J2SE£¬Java 2 Platform Standard Edition£¬ÎÒÃǾ­³£Ëµµ½µÄJDK£¬¾ÍÖ÷ÒªÖ¸µÄÕâ¸ö£ ......

ͨ¹ýinstall4j´ò°üJava³ÌÐò1.0

Õ⼸Ìì²Î¿¼ÓйØ×ÊÁÏ£¬½èÖúinstall4jÈí¼þ×ÜËã³õ²½Ñ§»áÁËJava³ÌÐò£¨jar£©´ò°ü³É¿É°²×°µÄWindowsÓ¦ÓóÌÐòµÄ·½·¨¡£
Ïà¹ØÈí¼þÔÚ£ºhttp://download.csdn.net/¿ÉÒÔËÑË÷µ½
 
ÒÔÏÂÊǹý³Ì¼Ç¼£º
1.   
ͨ¹ý¸÷ÖÖ·½Ê½Éú³ÉÒ»¸ö¿ÉÖ´ÐеÄjarÎļþ£¨Çë²Î¿¼£ºhttp://blog.sina.com.cn/s/blog_65bb33240100ii4r.html£ ......

java Îļþ²Ù×÷

1.
BufferedReader in = new BufferedReader(new FileReader("Ô¶³ÌÎļþ"));
in.readLine() ;
l  ʹÓà Java ²Ù×÷Îı¾ÎļþµÄ·½·¨Ïê½â
http://java.ccidnet.com/art/3737/20041108/523627_1.html
l    FileReader ÊÇʲôÀࣿºÍ FileInputStream ÓÐʲô²»Í¬£¿£¿£¿     
ht ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ