javaÖеÄÀàÐÍת»»
javaÖеÄÀàÐÍת»»¡£
¶ÔÓÚ»ù±¾Êý¾ÝÀàÐÍ£¬µ±ÓÉ“ÕÀàÐ͔תΪ“¿íÀàÐ͔ʱ£¨ÀýÈ磺double d = 1;), ±àÒëÆ÷»á×Ô¶¯ÌáÉýintÐ͵½doubleÐÍ£¬ ¶ø¶ÔÓÚÓÉ“¿íÀàÐ͔תΪ“ÕÀàÐÍ”£¨ÀýÈ磺 int i = (int)1.0;£© ʱ£¬ÓÉÓÚת»»Ê±¿ÉÄÜÓÐÐÅÏ¢¶ªÊ§µÄΣÏÕ£¬ËùÒÔPGÈËÔ±±ØÐëÏÔʾµÄ±íÃ÷£¬Ï൱ÓÚÊǸæËß±àÒëÆ÷“ÎÒÖªµÀÕâÑù×öÓÐΣÏÕ£¬µ«ÊÇÎÒ¼á³ÖÕâÑù×ö£¡”¡£
Ïà¹ØÎĵµ£º
Ö÷ÒªÊÇÀûÓÃJavaÌṩµÄutil°üÖеÄPropertiesÀà¡£·Ï»°²»¶à˵£¬Ö±½Ó¿´´úÂ룺
view plaincopy to clipboardprint?
import java.util.*;
public class YourJavaProperties {
public static void main(String args[]){
Properties props=System.getProperties();
System.out.println("JavaµÄÔËÐл·¾³°æ±¾£º"+props.getP ......
µÚÁùÕÂ
javaÀàÉè¼Æ
extendsÀàµÄ¼Ì³Ð
objectÀàÊÇËùÓÐjavaÀàµÄ×î¸ß²ã¸¸Àà
javaÖ»Ö§³Öµ¥¼Ì³Ð ²»ÔÊÐí¶àÖؼ̳Ð
Ò»¸ö×ÓÀàÖ»ÓÐÒ»¸ö¸¸Àà Ò»¸ö¸¸Àà¿ÉÓÃÓжà¸ö×ÓÀà
public default protected public
·½·¨ÖØд
ÔÚ×ÓÀà¿ÉÓøù¾ÝÐèÒª¶Ô¸¸Àà¼Ì³ÐµÄ·½·¨½øÐиÄÔì--·½·¨µÄÖØд
ÖØд·½·¨±ØÐëºÍ±»ÖØд·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ ²ÎÊýÁбí ......
µÚ¾ÅÕÂ
»ùÓÚÎı¾µÄjavaÓ¦ÓóÌÐò
inputsreamreader is=new inputstreamreader(system.in)
bufferedreader br=new bufferedreader(is)
s=br.readline();
while(!s.euqal("")){}
FLIE f=new file()
filereader ÒÔ×Ö·ûΪµ¥Î»
bufferedreaderÀàµÄreadline
ÒÔÐÐΪµ¥Î»¶ÁÈëÒ»ÐÐ×Ö·û
filewriterÒÔ×Ö·ûΪµ¥Î»ÏòÎļþд³öÊý¾ ......
Java 2 ƽ̨ÒýÈëÁË java.lang.ref °ü£¬ÆäÖаüÀ¨µÄÀà¿ÉÒÔÈÃÄúÒýÓöÔÏ󣬶ø²»½«ËüÃÇÁôÔÚÄÚ´æÖС£ÕâЩÀ໹ÌṩÁËÓëÀ¬»øÊÕ¼¯Æ÷£¨garbage collector£©Ö®¼äÓÐÏ޵Ľ»»¥¡£Peter Haggar ÔÚ±¾ÎÄÖзÖÎöÁË SoftReference ¡¢ WeakReference ºÍ PhantomReference ÀàµÄ¹¦ÄܺÍÐÐΪ£¬²¢¾ÍÕâЩÀàµÄʹÓøø³öÁËһЩ±à³Ì·ç¸ñÉϵĽ¨Òé¡£
µ±ÔÚ Ja ......