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

JAVA³õʼ»¯Ë³Ðò


Java³õʼ»¯Ë³Ðò
ÏÈ¿´Ò»¸öÀý×Ó£º
/**ÀàA**/ 
class TestA {  
    public TestA(String a){  
        System.out.println(a);  
    }  
}  
/**ÀàB**/ 
 class TestB {  
    public TestB(String b){  
        System.out.println(b);  
    }  
}  
/**Àà Parent **/ 
 class Parent {  
    private static TestA testA1 = new TestA("ParentµÄ¾²Ì¬±äÁ¿");  
    static {  
        System.out.println("ParentµÄ¾²Ì¬³õʼ»¯Ä£¿é");  
    }  
    private  TestA testA2 = new TestA("Parent±äÁ¿");  
    {  
        System.out.println("ParentµÄ³õʼ»¯Ä£¿é");  
    }  
    public Parent(){  
        System.out.println("ParentµÄ¹¹Ô캯Êý");  
    }  
}  
 
/**ParentµÄ×ÓÀàSubClass**/ 
public class SubClass extends Parent{  
    private static TestA testA1 = new TestA("SubClassµÄ¾²Ì¬±äÁ¿1");  
    static {  
        System.out.println("SubClassµÄ¾²Ì¬³õʼ»¯Ä£¿é1");  
    }  
    private static TestA testA2 = new TestA("SubClassµÄ¾²Ì¬±äÁ¿2");  
    static {  
        System.out.println("SubClassµÄ¾²Ì¬³õʼ»¯Ä£¿é2");  
    }  
    private  TestA testA3 =


Ïà¹ØÎĵµ£º

JAVAÅÅÐò»ã×Ü

import java.util.Random;
/**
 * ÅÅÐò²âÊÔÀà
 *
 * ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
 * 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐò¡¢Ï£¶ûÅÅÐò£©£»
 * 2.½»»»ÅÅÐò£¨Ã°ÅÝÅÝÅÅÐò¡¢¿ìËÙÅÅÐò£©£»
 * 3.Ñ¡ÔñÅÅÐò£¨Ö±½ÓÑ¡ÔñÅÅÐò¡¢¶ÑÅÅÐò£©£»
 * 4.¹é²¢ÅÅÐò£»
 * 5.»ùÊýÅÅÐò¡£
 *
& ......

´«ÖDz¥¿ÍµÄJAVA SE¸ß¼¶ÊÓƵ1 API ×Ôѧ±Ê¼Ç

2009-12-20 22:15:02
½ñÌ컨ÁËÒ»Ììʱ¼ä°Ñ´«ÖDz¥¿ÍµÄJAVA SE¸ß¼¶ÊÓƵ1 API¿´ÍêÁË£¬»¹¿´ÁËÒ»²¿·Ö¸ß¼¶Ê³Æ·2 IOµÄÊÓƵ£¬ÒÔÏÂÊÇAPIµÄ±Ê¼Ç¡£
API: Application Programming Interface Ó¦ÓóÌÐò±à³Ì½Ó¿Ú
    windows API£ºwindowsϵͳÌṩµÄ
    JAVA API£ºJDKÖÐÌṩµÄ¸÷ÖÖjavaÀà(ÕÆÎÕ³£ÓõÄAPI ......

JavaλÔËËã·ûºÅ²Ù×÷£¨×ª£©

Java ¶¨ÒåµÄλÔËË㣨bitwise operators £©Ö±½Ó¶ÔÕûÊýÀàÐ͵Äλ½øÐвÙ×÷£¬ÕâЩÕûÊýÀàÐÍ°üÀ¨long£¬int£¬short£¬char£¬and byte ¡£±í4-2 ÁгöÁËλÔËË㣺
±í4.2 λÔËËã·û¼°Æä½á¹û
ÔËËã·û ½á¹û
~ °´Î»·Ç£¨NOT£©£¨Ò»ÔªÔËË㣩
& °´Î»Ó루AND£©
| °´Î»»ò£¨OR£©
^ °´Î»Òì»ò£¨XOR£©
>> ÓÒÒÆ
>>> ÓÒÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ