Java»ù±¾ÀàÐÍ
from
http://hi.baidu.com/18276393/blog/item/f6efc9d77ee7bc2806088b61.html
ÔÎÄ
»ù±¾ÀàÐÍ£¬»òÕß½Ð×öÄÚÖÃÀàÐÍ£¬ÊÇJAVA
ÖÐ
²»Í¬ÓÚÀàµÄÌØÊâÀàÐÍ¡£ËüÃÇÊÇÎÒÃDZà³ÌÖÐʹÓÃ×îƵ·±µÄÀàÐÍ£¬Òò´ËÃæÊÔ
ÌâÖÐÒ²×ÜÉÙ²»ÁËËü
ÃǵÄÉíÓ°£¬ÔÚÕâƪÎÄÕÂÖÐÎÒÃǽ«´ÓÃæÊÔÖг£¿¼µÄ¼¸¸ö·½ÃæÀ´»Ø¹ËÒ»ÏÂÓë»ù±¾ÀàÐÍÏà¹ØµÄ֪ʶ¡£
»ù±¾ÀàÐ͹²ÓаËÖÖ£¬ËüÃÇ·Ö±ð¶¼ÓÐÏà¶ÔÓ¦µÄ°ü×°Àà¡£
»ù±¾ÀàÐÍ¿ÉÒÔ·ÖΪÈýÀ࣬×Ö·ûÀàÐÍchar£¬²¼¶ûÀàÐÍbooleanÒÔ¼°ÊýÖµÀàÐÍbyte¡¢short¡¢int¡¢long¡¢float¡¢double¡£ÊýÖµ
ÀàÐÍÓÖ¿ÉÒÔ·ÖΪÕûÊýÀàÐÍbyte¡¢short¡¢int¡¢longºÍ¸¡µãÊýÀàÐÍfloat¡¢double¡£JAVAÖеÄÊýÖµÀàÐͲ»´æÔÚÎÞ·ûºÅµÄ£¬ËüÃǵÄÈ¡Öµ
·¶Î§Êǹ̶¨µÄ£¬²»»áËæ×Å»úÆ÷Ó²¼þ»·¾³»òÕß²Ù×÷ϵͳµÄ¸Ä±ä¶ø¸Ä±ä¡£Êµ¼ÊÉÏ£¬JAVAÖл¹´æÔÚÁíÍâÒ»ÖÖ»ù±¾ÀàÐÍvoid£¬ËüÒ²ÓжÔÓ¦µÄ°ü×°Àà
java.lang.Void£¬²»¹ýÎÒÃÇÎÞ·¨Ö±½Ó¶ÔËüÃǽøÐвÙ×÷¡£¶ÔÓÚÊýÖµÀàÐ͵Ļù±¾ÀàÐ͵ÄÈ¡Öµ·¶Î§£¬ÎÒÃÇÎÞÐèÇ¿ÖÆÈ¥¼ÇÒ䣬ÒòΪËüÃǵÄÖµ¶¼ÒѾÒÔ³£Á¿µÄÐÎ
ʽ¶¨ÒåÔÚ¶ÔÓ¦µÄ°ü×°ÀàÖÐÁË¡£Çë¿´ÏÂÃæµÄÀý×Ó£º
¸´ÖÆÄÚÈݵ½¼ôÌù°å
´úÂë:
public class PrimitiveTypeTest {
public static void main(String[] args) {
// byte
System.out.println("»ù±¾ÀàÐÍ£ºbyte ¶þ½øÖÆλÊý£º" + Byte.SIZE);
System.out.println("°ü×°Àࣺjava.lang.Byte");
System.out.println("×îСֵ£ºByte.MIN_VALUE=" + Byte.MIN_VALUE);
System.out.println("×î´óÖµ£ºByte.MAX_VALUE=" + Byte.MAX_VALUE);
System.out.println();
// short
System.out.println("»ù±¾ÀàÐÍ£ºshort ¶þ½øÖÆλÊý£º" + Short.SIZE);
System.out.println("°ü×°Àࣺjava.lang.Short");
System.out.println("×îСֵ£ºShort.MIN_VALUE=" + Short.MIN_VALUE);
System.out.println("×î´óÖµ£ºShort.MAX_VALUE=" + Short.MAX_VALUE);
System.out.println();
// int
System.out.println("»ù±¾ÀàÐÍ£ºint ¶þ½øÖÆλÊý£º" + Integer.SIZE);
System.out.println("°ü×°Àࣺjava.lang.Integer");
System.out.println("×îСֵ£ºInteger.MIN_VALUE=" +
Integer.MIN_VALUE);
System.out.println("×î´óÖµ£ºInteger.MAX_VALUE=" +
Integer.MAX_VALUE);
System.out.println();
// long
System.out.println("»ù±¾ÀàÐÍ£ºlong ¶þ½øÖÆλÊý£º" + Long.S
Ïà¹ØÎĵµ£º
dzÎöJava web³ÌÐòÖ®¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½»»¥ÔÀí
½üÀ´Ò»Ö±ÔÚ˼¿¼Ò»¸öÒÉÎÊ£¬ÎªÊ²Ã´ÔÚÓÃstruts¿ò¼Ü¿ª·¢µÄʱºòFormBean¶¼ÐëÒªÐòÁл¯£¬¼´ÊµÏÖJava.io.Serializable½Ó¿Ú£¬±¾×ÅÇÚѧºÃÎʵľ«ÉñÎÒGoogleÁË϶ÔÏóÐòÁл¯·½ÃæµÄÎÄÕ£¬ËäÈ»´óÌåÃ÷°×ÁËÈçºÎ×ö£¬µ«ÊÇ»¹ÊÇûÓиãÇå³þΪʲôҪÕâÑù×ö£»½áβÎÒÏë´¦ÀíÒ»¸öÒÉÎÊÒªÕÒÒÉÎʵĸùÔ´ºÍ±¾ÖÊ ......
ÍƼöÒ»¿îJava·´±àÒëÆ÷£¬Ò²Ê¹ÓÃÁËͦ¾ÃµÄÁË£¬¸Ð¾õ»¹ÊǺܺÃÓ㬾ÍÄóöºÍ´ó¼Ò·ÖÏíһϡ£
Õâ¿î·´±àÒëÆ÷½Ð "Java Decompiler", ÓÉ Pavel Kouznetsov¿ª·¢£¬Ä¿Ç°×îа汾Ϊ0.2.5.
ËüÓÉ C++¿ª·¢£¬²¢ÇÒ¹Ù·½¿ÉÒÔÏÂÔØ windows¡¢linuxºÍÆ»¹ûMac OsÈý¸öƽ̨µÄ¿ÉÖ´ÐгÌÐò¡£
±¾ÈËÖ®ËùÒÔÈÏΪËü»¹²»´í£¬ÊÇÆäÓÐÏÂÃ漸¸ö¹ ......
ÔÚ±¾ÎÄͨ¹ýÌṩʹJava Ó¦ÓóÌÐò¿ÉÒÔʹÓà USB É豸µÄ API ¶øʹÕâ¸ö¹ý³Ì±äµÃ¸üÈÝÒ×.
Java ƽ̨һֱ¶¼ÒÔÆäƽ̨ÎÞ¹ØÐÔ×ÔºÀ¡£ËäÈ»ÕâÖÖÎÞ¹ØÐÔÓÐÐí¶àºÃ´¦£¬µ«ÊÇËüҲʹµÃ±àдÓëÓ²¼þ½»»¥µÄ Java Ó¦ÓóÌÐòµÄ¹ý³Ì±äµÃÏ൱¸´ÔÓ¡£ÔÚ±¾ÎÄÖУ¬Ñо¿¿Æѧ¼Ò½¯ÇåÒ°ÌÖÂÛÁËÁ½¸öÏîÄ¿£¬ËüÃÇͨ¹ýÌṩʹJava Ó¦ÓóÌÐò¿ÉÒÔʹÓà USB É豸µÄ API ¶øʹÕâ ......
ת×Ô£ºhttp://ttitfly.javaeye.com/blog/155422
1.javaÀïµÄclone·ÖΪ£º
A:dz¸´ÖÆ£¨Ç³¿Ë¡£©: dz¸´Öƽö½ö¸´ÖÆËù¿¼ÂǵĶÔÏ󣬶ø²»¸´ÖÆËüËùÒýÓõĶÔÏó¡£
b:ÉÖÆ£¨Éî¿Ë¡£©£ºÉÖÆ°ÑÒª¸´ÖƵĶÔÏóËùÒýÓõĶÔÏ󶼸´ÖÆÁËÒ»±é¡£
JavaÖжÔÏóµÄ¿Ë¡,ΪÁË»ñÈ¡¶ÔÏóµÄÒ»·Ý¿½±´£¬ÎÒÃÇ¿ÉÒÔÀûÓÃObjectÀàµÄclone()·½·¨¡£±ØÐëÒª×ñÑ ......