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

¹ØÓÚjavaÍøÂç±à³Ì

       java.netµÄÀà¿ÉÒÔ»®·ÖΪÁ½ÀࣺÌ×½Ó×ÖAPI£¨Sockets API)ºÍÓÃÓÚ´¦Àíͳһ×ÊÔ´¶¨Î»Æ÷£¨URL£©¡£Socket ÊÇËùÓÐÆäËû¿ÉÒÆÖ²ÍøÂçͨÐŵĵײã»úÖÆ£¬ÓÃÓÚÍøÂçÉÏ¿Í»§ºÍ·þÎñÆ÷Ö®¼äµÄ¸÷ÖÖͨÐÅ¡£javaÌṩµÄÌ×½Ó×ÖÖ§³ÖÈýÖÖ²»Í¬µÄµ×²ãЭÒ飺Socket£¨ÃæÏòÁ¬½ÓµÄЭÒ飩¡¢DatagramSocket£¨ÎÞÁ¬½ÓЭÒ飩ºÍMulticastSocket¡£
      ÔÚ±àдÍøÂç±à³Ìʱ£¬Í¨³£»á̸µ½¿Í»§ºÍ·þÎñÆ÷£¬·¢ÆðͨÐŵÄÊÇ¿Í»§£¨client£©£¬½ÓÊÕÇëÇóµÄÊÇ·þÎñÆ÷£¨server£©¡£¿Í»§ÐèÒªÁ½¸öÐÅÏ¢À´ÕÒµ½InternetÉϵÄÒ»¸ö·þÎñÆ÷²¢ÓëÖ®Á¬½Ó£¬¼´IPµØÖ·ºÍ¶Ë¿ÚºÅ¡£
     ¿Í»§¹¹ÔìÒ»¸öSocketÀ´´ò¿ªÓëÒ»¸ö·þÎñÆ÷µÄÁ´½Ó£º
    try{
          Socket sock = new Socket("www.baidu.com",25);
          }catch(UnkownHostException e){
               System.out.println("can't find host.");
          }catch(IOException e){
               System.ou.println("Error connecting to host.");
           }
    ½¨Á¢ÁËÁ´½Óºó£¬·þÎñÆ÷Ó¦ÓÃÔòʹÓÃͬÀàµÄSocket¶ÔÏóÀ´Íê³É·þÎñÆ÷¶ËµÄͨÐÅ£¬²»¹ýΪÁË¿Í»§½ÓÊÕÒ»¸öÁ¬½Ó£¬Ê×ÏÈÒª´´½¨Ò»¸öServerSocket¡£
    try{
          ServerSocket listener = new ServerSocket(1234);
          ......}


Ïà¹ØÎĵµ£º

Java:ÖØдequals()ºÍhashCode()

1.
ºÎʱÐèÒªÖØд
equals()
µ±Ò»¸öÀàÓÐ×Ô¼ºÌØÓеēÂß¼­ÏàµÈ”¸ÅÄ²»Í¬ÓÚ¶ÔÏóÉí·ÝµÄ¸ÅÄ¡£
2.
Éè¼Æ
equals()
[1]
ʹÓÃ
instanceof
²Ù×÷·û¼ì²é“ʵ²ÎÊÇ·ñΪÕýÈ·µÄÀàÐÍ”¡£
[2]
¶ÔÓÚÀàÖеÄÿһ¸ö“¹Ø¼üÓò”£¬¼ì²éʵ²ÎÖеÄÓòÓ뵱ǰ¶ÔÏóÖжÔÓ¦µÄÓòÖµ¡£
[2.1]
¶ÔÓÚ·Ç
float
ºÍ ......

Java´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÍêÈ«¹¥ÂÔ

0¡¡ÒýÑÔ
   
´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔÇ°µÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï ......

JAVA LIST ±éÀú

¶ÔListµÄ±éÀúÓÐÈýÖÖ·½Ê½  
   
   List<A>    list    =    new    ArrayList<A>();  
   list.add(new    A());  
   list.add(new & ......

ÆóÒµ¼¶JAVA¿ìËÙ¿ª·¢

²úÆ·ÏÂÔØhttp://www.fastunit.com/download/download.html ¸ñʽ
´óС£¨bytes£©
·¢²¼ÈÕÆÚ FastUnit 2.9 ÆÕ¼°°æ*
zip
16,707,279 / 15.9M
2010-05-18
µã»÷ÏÂÔØ ¡¶FastUnit¿ª·¢Êֲᡷ
pdf
1,716,405 / 1.63M
2010-05-13
µã»÷ÏÂÔØ ¡¶FastUnit¹ÜÀíÊֲᡷ
pdf
300,1 ......

ÓÃJAVAʵÏÖ¶ÑÕ»£¨Êý×éƪ£©

ʲôÊǶÑÕ»£¬¹ØÓÚÕâ¸öÃû´Ê£¬ÎÒÔڰٶȣ¬googleËÑË÷ÁË°ëÌ죬ҲûÓз¢ÏÖÒ»¸ö±È½ÏȨÍþµÄ½âÊÍ£¬»¹ÓÐÐí¶à×ÊÁÏÓïÑɲ»Ï꣬¾ÍÒÔά»ù°Ù¿ÆµÄ½âÊÍΪ׼°É£¬ºÍÎÒ¼ÇÒäÖеÄÒ»Ö¡£
¶ÑÕ»£¨Ó¢ÎÄ£ºstack£©£¬Öйú´ó½×÷¶ÑÕ»£¬Ì¨Íå×÷¶Ñµþ£¬ÔÚ¼ÆËã»ú¿Æ學ÖУ¬ÊÇÒ»種ÌØÊâµÄ´®ÁÐÐÎʽµÄ資ÁÏ結構£¬ËüµÄÌØÊâÖ®處ÔÚì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ