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

java×Ü½á µÚÆßÕÂ

µÚÆßÕÂ
¸ß¼¶ÀàÌØÕ÷
static
ÀàÊôÐÔÓɸÃÀàµÄËùÓÐʵÀý¹²Ïí
public static int total=0;
µ±totalËùÊôÀà±»Êý´ÎʵÀý»¯µÄʱºò totalÖ»ÓÐÒ»¸ö¶ø²»ÊǶà¸ö
Ò²¿É¾²Ì¬³õʼ»¯static
public static int total£»
static{
total=100;
}
static±ê¼ÇµÄ±äÁ¿»òÕß·½·¨ÓÉÕû¸öÀà(ËùÓÐʵÀý)¹²Ïí
µ¥×Óģʽ
class Single{
    private static Single onlyone = new Single();
    private String name;
    public static Single getSingle() {
           return onlyone;
    }
    private Single() {}
    }
public class TestSingle{
    public static void main(String args[]) {
    Single  s1 = Single.getSingle();
    Single  s2 = Single.getSingle();
    if (s1==s2){
                         System.out.println("s1 is equals to s2!");
                  }
    }
static¿ÉÒÔÐÞÊαäÁ¿ ·½·¨ ÄÚ²¿Àà
final¿ÉÒÔÐÞÊÎÀà ÊôÐÔ ·½·¨
final±ê¼ÇµÄÀ಻Äܱ»¼Ì³Ð
final±ê¼ÇµÄ·½·¨²»Äܱ»×ÓÀàÖØд
final±ê¼ÇµÄ±äÁ¿ ³ÉÔ±±äÁ¿»òÕß¾Ö²¿±äÁ¿ ¼´³ÆΪ³£±äÁ¿ Ö»Äܸ³ÖµÒ»´Î
final±ê¼ÇµÄ³ÉÔ±±äÁ¿±ØÐëÔÚÉùÃ÷µÄͬʱºóÔÚÿ¸ö¹¹Ôì·½·¨ÖÐÏÔʽ¸³Öµ ²ÅÄÜʹÓÃ
³éÏóÀà
abstract class
{
void run();
void rub2()
{  }
}
extends ¼Ì³Ð³éÏóÀà ³éÏó·½·¨ÔÚÖ÷º¯ÊýÍâÖØд
abstarctÐÞÊÎÀàʱºò½Ð³éÏóÀà ÐÞÊη½·¨½Ð³éÏó·½·¨
º¬ÓгéÏó·½·¨µÄÀà±ØÐë±»ÉùÃ÷Ϊ³éÏóÀà
³éÏóÀà±ØÐë±»¼Ì³Ð ³éÏó·½·¨±ØÐë±»ÖØд
³éÏóÀ಻Äܱ»ÊµÀý»¯
³éÏó·½·¨Ö»ÐèÒªÉùÃ÷²»ÐèҪʵÏÖ
public interface runnner
{
public void start();
public void run();
}                    
½Ó¿Ú±»¼Ì³Ðimplements
·½·¨±»ÖØд
class person entends Àà»òÕß³éÏóÀà implements
½Ó¿Ú1£¬½Ó¿Ú2
{
·½


Ïà¹ØÎĵµ£º

Java NIO APIÏê½â

 
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......

javaʹÓÃrocksawºÍvserv tcpipʵÏÖ»ùÓÚICMPµÄPing¹¦ÄÜ

Ò»£º×¼±¸ www.savarese.org download
 1.  rocksaw-1.0.0-src.tar.gz
 2.  vserv-tcpip-0.9.2-src.tar.gz
¶þ£º±àÒëÔ´ÎļþµÃµ½jar°ü ʹÓÃAnt
 1.  build vserv-tcpip-0.9.2-src
      ÔÚvserv-tcpip-0.9.2Ŀ¼ÏÂÃ潨һ¸ötestsĿ¼£¬È»ºóÔÚcmd´°¿ÚϽøÈë ......

JavaÒì³£ÁíÀàÊÖ²á

ÔÚÕâ¸öÒ³ÃæÉÏhttp://rymden.nu/exceptions.html£¬Äã»á¿´µ½JavaµÄ¸÷ÖÖÒì³££¬²»¹ý£¬Äã¿´¿´¸÷¸öÒì³£µÄ½âÊÍ£¬Äã»á·¢Ïַdz£ÓÐȤ£¬ÏÂÃæÀý¾Ù¼¸¸ö°É£º
java.lang.ArithmeticException
ÄãÕýÔÚʹÓüÆËã½â¾öÒ»¸öÄã²»ÄÜ×Ô¼º½âÊ͵ÄÊýѧÎÊÌ⣬ÇëÄãÖØжÁÒ»ÏÂÄãµÄ³ÌÐò£¬È»ºó£¬ÔÙÊÔÒ»´Î¡£
java.lang.ClassNotFoundException
ÄãÓ¦¸ÃÊÇ·¢Ã ......

FlexÓëjavaÕûºÏÎÊÌâ

ÎʸöÎÊÌâ ×î½üÔÚѧϰFlex¡£¡£¡£ÕÕ×ÅÍøÉÏ×ÊÁÏ£¬ÔÚMyEclipseÖÐÍê³ÉÁËFlexÓëwebÏîÄ¿ÕûºÏ
ÔÚ×öÆÕͨFlexÔËÐвâÊÔÊÇÊÇûÓÐÎÊÌâµÄ£¬µ«Èç¹ûÏëµ÷ÓÃjavaÀ࣬°´ÕÕÍøÉϵÄ×ö·¨£¬ÊÇÒª¸ü¸Ä¸ÃÄ¿
¼ÏµÄremoting-config.xml£¬µ«ÊÇÎÒ×Ô¶¯Éú³ÉµÄWebRoot/WEB_INFO/flexĿ¼ÏÂÃæ½ö½öÖ»ÓÐ
services-config.xmlÒ»¸öÎļþ£¬ÕâÊÇʲôԭÒò£¿£¿ÎÒµÄÊÇ ......

java×Ü½á µÚÒ»ÕÂ

µÚÒ»ÕÂ
¿Î³Ì¸ÅÊö
javaµÄÉè¼ÆÄ¿±ê
¼òµ¥
¿ÉÒÆÖ²--
ÃæÏò¶ÔÏó--
·Ö²¼Ê½¶ÔÏó
¸ßÐÔÄÜ
½¡×³
°²È«
¶¯Ì¬
Ìåϵ½á¹¹ÖÐÁ¢
javaÊDZà³ÌÓïÑÔ Ìåϵ¼Ü¹¹ ˼¿¼·½Ê½ ÔËÐл·¾³
javaÈýÖÖºËÐÄ
javaÐéÄâ»ú jvm
À¬»øÊÕ¼¯»úÖÆ
´úÂ밲ȫÐÔ¼ì²â
¼ÆËã»ú¸ß¼¶ÓïÑÔÀàÐÍ£º±àÒëÐÍ ½âÊÍÐÍ
javaÊÇÁ½ÖÖÀàÐ͵ĽáºÏ
javaÔ´³ÌÐò ×Ö½ÚÂëÎļþ »úÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ