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

³õʶJavaÄÚ²¿Àà

ÌáÆðJavaÄÚ²¿ÀࣨInner Class£©¿ÉÄܺܶàÈ˲»Ì«ÊìϤ£¬Êµ¼ÊÉÏÀàËƵĸÅÄîÔÚC++ÀïÒ²ÓУ¬ÄǾÍÊÇǶÌ×ÀࣨNested Class£©£¬¹ØÓÚÕâÁ½ÕßµÄÇø±ðÓëÁªÏµ£¬ÔÚÏÂÎÄÖлáÓжԱȡ£ÄÚ²¿Àà´Ó±íÃæÉÏ¿´£¬¾ÍÊÇÔÚÀàÖÐÓÖ¶¨ÒåÁËÒ»¸öÀࣨÏÂÎĻῴµ½£¬ÄÚ²¿Àà¿ÉÒÔÔںܶàµØ·½¶¨Ò壩£¬¶øʵ¼ÊÉϲ¢Ã»ÓÐÄÇô¼òµ¥£¬Õ§¿´ÉÏÈ¥ÄÚ²¿ÀàËƺõÓÐЩ¶àÓ࣬ËüµÄÓô¦¶ÔÓÚ³õѧÕßÀ´Ëµ¿ÉÄܲ¢²»ÊÇÄÇôÏÔÖø£¬µ«ÊÇËæ×ŶÔËüµÄÉîÈëÁ˽⣬Äã»á·¢ÏÖJavaµÄÉè¼ÆÕßÔÚÄÚ²¿ÀàÉíÉϵÄÈ·ÊÇÓÃÐÄÁ¼¿à¡£Ñ§»áʹÓÃÄÚ²¿À࣬ÊÇÕÆÎÕJava¸ß¼¶±à³ÌµÄÒ»²¿·Ö£¬Ëü¿ÉÒÔÈÃÄã¸üÓÅÑŵØÉè¼ÆÄãµÄ³ÌÐò½á¹¹¡£ÏÂÃæ´ÓÒÔϼ¸¸ö·½ÃæÀ´½éÉÜ£º
µÚÒ»´Î¼ûÃæ
public interface Contents {
    int value();
}
public interface Destination {
    String readLabel();
}
public class Goods {
    private class Content implements Contents {
        private int i = 11;
        public int value() {
            return i;
        }
    }
    protected class GDestination implements Destination {
        private String label;
        private GDestination(String whereTo) {
            label = whereTo;
        }
        public String readLabel() {
            return label;
        }
    }
    public Destination dest(String s) {
        return new GDestination(s);
    }
    public Contents cont() {
        return new Content();
    }
}


Ïà¹ØÎĵµ£º

java jdbc ÊÂÎñ¹ÜÀí

ÇмǣºÎÞÂÛhibernate»¹ÊÇjdbcµÄÊÂÎñ¿ØÖƶ¼Ó¦ÔÚservice²ã!
jdbcÊÂÎñ¹ÜÀíÒª±£Ö¤service ²ãÓëdao²ãÊÇ»ùÓÚͬһ¸öConnection;
Ò²¾ÍÊÇ˵ÔÚservice²ãÀïµÃµ½Connection £¬DAOÖз½·¨ÒÔ²ÎÊýµÄÐÎʽµÃµ½Õâ¸öʵÀý¡£¡£
δÍê´ýÐø¡£¡£¡£ ......

ÎÒÓÃjava±»±ÉÊÓÁË

      ÎÒÔÚ¼ÆËã»úÐÐÒµºÍÎÒµÄͼ±êÒ»Ñù»¹Ö»ÊÇÒ»¸öСº¢£¬µ±ÎÒÔÚÄÃϼÆËã»ú4¼¶£¨Èí¼þ²âÊÔ¹¤³Ìʦ£©ºÍ±àдÁ˲»ÉÙµÄͦcoolµÄ³ÌÐòÖ®ºó£¬¾õµÃ
×Ô¼ºË®Æ½²»Àµ¹þ¡£½á¹û¸Õ¿çÈëÒ»¸ö´ó¹«Ë¾ÊµÏ°µÄʱºò£¬ÎÒ¿´µ½ÎÒµÄÄǸöÏîÄ¿£¬ºÜ¿ìÎÒ±à³ÌµÄ˼άÓÖÔÚÌø¶¯£¬¿É“ÀÏ´ó”À´ÁËÒ»¾äc/c++ʵÏÖ
£¬ÎҾͷ·ðµ½ÁËÒ»¸ ......

»º´æϵͳMemCachedµÄJava¿Í»§¶ËÓÅ»¯Àú³Ì

來Ô´£ºhttp://www.infoq.com/cn/articles/memcached-java
×÷Õß




á¯Îijõ

·¢²¼ÓÚ
2008Äê9ÔÂ27ÈÕ ÉÏÎç12ʱ38·Ö

ÉçÇø
Java
Ö÷Ìâ
¼¯ÈºÓ뻺´æ
Memcached ÊÇʲô£¿
MemcachedÊÇÒ»ÖÖ¼¯ÖÐʽCache£¬Ö§³Ö·Ö²¼Ê½ºáÏòÀ©Õ¹¡£ÕâÀïÐèÒª½âÊÍ˵Ã÷һϣ¬ºÜ¶à¿ª·¢Õß¾õµÃMemcachedÊÇÒ»ÖÖ· ......

¸÷ÖÖJavaÖÐÎÄתÂëµÄÀý×Ó£¬ÓÃÀ´¶Ô¸¶ÂÒÂë

 ¸÷ÖÖJavaÖÐÎÄתÂëµÄÀý×Ó£¬ÓÃÀ´¶Ô¸¶ÂÒÂë
public class HelloWorld
{
   public static void main(String[] argv){
     try{
       System.out.println("ÖÐÎÄ1");    //1
       System.out.p ......

JAVAÄÚ²¿ÀàµÄ×÷ÓÃ

Ò»¡¢ ¶¨Òå
·ÅÔÚÒ»¸öÀàµÄÄÚ²¿µÄÀàÎÒÃǾͽÐÄÚ²¿Àà¡£
¶þ¡¢ ×÷ÓÃ
1.ÄÚ²¿Àà¿ÉÒԺܺõÄʵÏÖÒþ²Ø,Ò²¾ÍÊÇ·â×°ÐÔ¡£Ò»°ãµÄ·ÇÄÚ²¿À࣬ÊDz»ÔÊÐíÓÐ private ÓëprotectedȨÏ޵ģ¬µ«ÄÚ²¿Àà¿ÉÒÔ
2.ÄÚ²¿ÀàÓµÓÐÍâΧÀàµÄËùÓÐÔªËصķÃÎÊȨÏÞ
3.¿ÉÊÇʵÏÖ¶àÖؼ̳Ð
4.¿ÉÒÔ±ÜÃâÐ޸ĽӿڶøʵÏÖͬһ¸öÀàÖÐÁ½ÖÖͬÃû·½·¨µÄµ÷ÓÃ
Èý¡¢   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ