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

JavaÍøÂç±à³Ìѧϰ±Ê¼ÇÖ®Socket(Ò»)

    ÔÚ¿Í»§/·þÎñÆ÷ͨÐÅģʽÖУ¬¿Í»§¶ËÖ÷¶¯´´½¨Óë·þÎñÆ÷Á¬½ÓµÄSocket£¬·þÎñÆ÷ÊÕµ½¿Í»§¶ËµÄÁ¬½ÓÇëÇó£¬Ò²´´½¨ÁËÓë¿Í»§¶ËÁ¬½ÓµÄSocket¡£
    ¿Í»§¶ËÖ÷¶¯´´½¨Socketʱºò£¬ÐèÒª×öÏÂÃæһЩÊÂÇ飺
    1. ¹¹ÔìSocket.
    2. É趨µÈ´ý½¨Á¢Á¬½ÓµÄ³¬Ê±Ê±¼ä
    3. É趨·þÎñÆ÷µÄµØÖ·
    4. É趨¿Í»§¶ËµÄµØÖ·
    5. ´¦Àí¿Í»§¶ËÁ¬½Ó·þÎñÆ÷¿ÉÄÜÅ׳öµÄÒì³£
    SocketµÄÐÅÏ¢ÓÐÔ¶³Ì·þÎñÆ÷µÄIPµØÖ·¡¢¶Ë¿ÚºÅ£¬¿Í»§±¾µØµÄIPµØÖ·¡¢¶Ë¿ÚºÅ£¬ÊäÈëÁ÷ºÍÊä³öÁ÷¡£
    ÈçºÎÅжϿͻ§¶Ë½ø³Ì·¢ËÍÊý¾ÝÍê³É£¬Socket¹Ø±ÕµÄ´¦Àí·½·¨£º
    1.Ô¼¶¨Ò»¸ö½áÊøµÄ×Ö·û´®£¬±ÈÈç“exit”µÈ¡£
    2.¿Í»§¶Ë½ø³ÌÏÈ·¢ËÍÒ»¸öÏûÏ¢£¬°üº¬ÕýÎĵij¤¶È£¬·þÎñÆ÷½ø³Ì¶Áµ½Õâ¸ö³¤¶Èºó£¬¾ÍÈÏΪ½áÊø¡£
    3.¿Í»§¶Ë½ø³Ì·¢ÍêËùÓÐÊý¾Ý£¬¹Ø±Õ¡£Èç¶Áµ½-1
    ÁíÍâSocketÓаë¹Ø±ÕµÄ˵·¨£¬¾ÍÊǹرÕÊä³öÁ÷»òÊäÈëÁ÷Ö®Ò»¡£±ÈÈç½ø³ÌA¹Ø±ÕÁËÊäÈëÁ÷£¬Ôò²»ÔÊÐíÊä³öÊý¾Ý£¬µ«ÈÔ¿ÉÒÔ¶ÁÈëÊý¾Ý¡£µ«ÕâÈÔÐèÒªµ÷ÓÃclose·½·¨£¬ÕâÑù²ÅÄÜÊÍ·ÅSocketÕ¼ÓõÄ×ÊÔ´¡£
    SocketÓкܶàµÄÑ¡Ïî
TCP_NODELAY:±íʾÁ¢¼´·¢ËÍÊý¾Ý
SO_RESUSEADDR:±íʾʮ·ÖÔÊÐíÖØÓÃSocketËù°ó¶¨µÄ±¾µØµØÖ·
SO_TIMEOUT:±íʾ½ÓÊÜÊý¾ÝʱµÄµÈ´ý³¬Ê±Ê±¼ä
SO_LINGER:±íʾµ±Ö´ÐÐSocketµÄclose()·½·¨Ê±£¬ÊÇ·ñÁ¢¼´¹Ø±Õµ×²ãµÄSocket
SO_SNFBUF£º·¢ËÍÊý¾ÝµÄ»º³åÇø´óС
SO_RCVBUF:½ÓÊÕÊý¾ÝµÄ»º³åÇø´óС
SO_KEEPALIVE:¶ÔÓÚ³¤Ê±¼ä´¦ÓÚ¿ÕÏÐ״̬µÄSocket£¬ÊÇ·ñ×Ô¶¯°ÑËü¹Ø±Õ
OOBINLINE:±íʾÊÇ·ñÖ§³Ö·¢ËÍÒ»¸ö×Ö½ÚµÄTCP½ô¼±Êý¾Ý
    ½ÓÏÂÀ´¶ÔÉÏÃæÑ¡ÏîÒ»Ò»½âÊÍ.
   


Ïà¹ØÎĵµ£º

java¶ÁÈ¡±¾µØexcelÎļþ´úÂë

package cn.com.view.read;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
public class ReadExcel { ......

3des¼ÓÃÜËã·¨µÄJavaʵÏÖ

import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
public class CipherTest {
public static void main(String[] args) {
try {
byte[] keydata = { (byte) 0x00, (byte) 0x01, (byte) 0x02,
(byte) 0x03, (byte) 0x04, (byte) 0x05, (byte) 0x06, ......

javaѧϰ±Ê¼Ç 1.³õ²½½éÉÜ

Ò».javaÈý¸ö·½Ïò
j2se ×ÀÃ濪·¢  £¨»ù´¡£©
j2ee web¿ª·¢
j2me ÊÖ»ú¿ª·¢
¶þ.¿ª·¢¹¤¾ß
¼Çʱ¾
jcreator
jbuilder
netbean
elipse£¨IBM£©
......
Èý.javaÓïÑÔÌصã
¼òµ¥
ÃæÏò¶ÔÏó
¿çƽ̨£¨Ò»´Î±àÒ룬µ½´¦ÔËÐУ©
¸ßÐÔÄÜ
ËÄ.°²×°ºÍÅäÖÃjdk
jdk£¿
java development kit java¿ª·¢¹¤¾ß°ü
°üÀ¨£ºjre£¨javaÔËÐ ......

JavaÎļþÖÐΪʲô»áÓÐserialVersionUID


һЩjavaÀàÖÐΪʲôÐèÒªÖØÔØ serialVersionUID ÊôÐÔ¡£
ÔÚJavaÖУ¬Èí¼þµÄ¼æ
ÈÝÐÔÊÇÒ»¸ö´óÎÊÌ⣬ÓÈÆäÔÚʹÓõ½¶ÔÏó´®ÐÐÐÔµÄʱºò£¬ÄÇôÔÚijһ¸ö¶ÔÏóÒѾ­±»´®Ðл¯ÁË£¬¿ÉÊÇÕâ¸ö¶ÔÏóÓÖ±»Ð޸ĺóÖØв¿ÊðÁË£¬ÄÇôÔÚÕâÖÖÇé¿öÏ£¬
ÓÃÀÏÈí¼þÀ´¶ÁÈ¡ÐÂÎļþ¸ñʽËäÈ»²»ÊÇʲôÄÑÊ£¬µ«ÊÇÓпÉÄܶªÊ§Ò»Ð©ÐÅÏ¢¡£
serialVersionUID
À´½â ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ