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

javaÖеľ²Ì¬´úÀíÓ붯̬´úÀí

javaÖеľ²Ì¬´úÀíÓ붯̬´úÀí
    ±¾À´´òËã½ñÌìдµãjpa·½ÃæµÄ¶«Î÷£¬½á¹û¸ãÉÏÁË´úÀí£¬Ë÷ÐԾͰÑÑо¿³É¹û·Å³öÀ´°É£¬javaÖеĴúÀíÓÐÁ½ÖÖÒ»ÖÖÊǾ²Ì¬´úÀíÒ»ÖÖÊǶ¯Ì¬´úÀí£¬¾²Ì¬´úÀíÆäʵºÜÈÝÒ×Àí½â£¬¾²Ì¬´úÀíÆäʵ¾ÍÊǸö×°ÊÎÆ÷¶øÒÑ£¬¶ø¶¯Ì¬´úÀíÔò½èÖúÓÚjvmµÄÖ§³Ö£¬ÔÚÔËÐÐʱ¶¯Ì¬Éú³É´úÀíÀà¡£
    ÔÚÕâÀïÎÒͨ¹ýÒ»¸öUserDao²ûÊöÕâ¸öÎÊÌâ¡£ÏÖʵÉú»îÖÐÕâÊÇÒ»¸öºÜʵ¼ÊµÄÓ¦Óá£
package com.syj.pt.dao;

/**
* <P>
* Title:Óû§¶ÔÏóÊý¾Ý·ÃÎʲã
* </P>
*
* @author ËïîÚ¼Ñ
* @main sunyujia@yahoo.cn
* @date Jun 1, 2008 11:04:26 AM
*/
public interface UserDao {
public void saveUser(Object user);
}
package com.syj.pt.dao.impl.mysql;

import com.syj.pt.dao.UserDao;

/**
* <P>
* Title:mysql°æUserDaoʵÏÖÀà
* </P>
*
* @author ËïîÚ¼Ñ
* @main sunyujia@yahoo.cn
* @date Jun 1, 2008 11:06:39 AM
*/
public class UserDaoImpl implements UserDao {

public void saveUser(Object user) {
System.out.println("mysql save User");
}

}
package com.syj.pt.dao.impl.oracle;

import com.syj.pt.dao.UserDao;

/**
* <P>
* Title: oracle°æUserDaoʵÏÖÀà
* </P>
*
* @author ËïîÚ¼Ñ
* @main sunyujia@yahoo.cn
* @date Jun 1, 2008 11:06:46 AM
*/
public class UserDaoImpl implements UserDao {

public void saveUser(Object user) {
System.out.println("oracle save User");
}

}

ÉÏÃæ·Ö±ð¶¨ÒåÁËÒ»¸ö½Ó¿ÚÁ½¸öʵÏÖÀ࣬·Ö¿ªmysqlºÍoracle¶ÔÊý¾Ý¿âµÄ²Ù×÷ʵÏÖÏÂÃæÊǷdz£¹Ø¼üµÄ´úÀíÀàʵÏÖ´úÂë
package com.syj.pt.proxy.st;

import com.syj.pt.dao.UserDao;

/**
* <P>
* Title:UserDaoImpl¾²Ì¬´úÀíÀà
* </P>
*
* @author ËïîÚ¼Ñ
* @main sunyujia@yahoo.cn
* @date Jun 1, 2008 11:08:24 AM
*/
public class UserDaoImplProxy implements UserDao{
private UserDao userDao;
public UserDaoImplProxy() {
super();


Ïà¹ØÎĵµ£º

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ÕýÔò±í´ïʽÈëÃÅ

ÖÚËùÖÜÖª£¬ÔÚ³ÌÐò¿ª·¢ÖУ¬ÄÑÃâ»áÓöµ½ÐèҪƥÅä¡¢²éÕÒ¡¢Ìæ»»¡¢ÅжÏ×Ö·û´®µÄÇé¿ö·¢Éú£¬¶øÕâЩÇé¿öÓÐʱÓֱȽϸ´ÔÓ£¬Èç¹ûÓô¿±àÂ뷽ʽ½â¾ö£¬ÍùÍù»áÀ˷ѳÌÐòÔ±µÄʱ¼ä¼°¾«Á¦¡£Òò´Ë£¬Ñ§Ï°¼°Ê¹ÓÃÕýÔò±í´ïʽ£¬±ã³ÉÁ˽â¾öÕâһì¶ÜµÄÖ÷ÒªÊֶΡ£
 ´ó ¼Ò¶¼ÖªµÀ£¬ÕýÔò±í´ïʽÊÇÒ»ÖÖ¿ÉÒÔÓÃÓÚģʽƥÅäºÍÌæ»»µÄ¹æ·¶£¬Ò»¸öÕýÔò±í´ïʽ¾ÍÊÇÓ ......

URI¡¢URL¡¢URNµÄÔ­Àí¡¢Çø±ð¼°JAVAµÄʵÏÖ

 
ʲôÊÇURI
WebÉÏ¿ÉÓõÄÿÖÖ×ÊÔ´ - HTMLÎĵµ¡¢Í¼Ïñ¡¢ÊÓƵƬ¶Î¡¢³ÌÐòµÈ - ÓÉÒ»¸öͨ¹ýͨ
ÓÃ×ÊÔ´±êÖ¾·û£¨Universal Resource Identifier, ¼ò³Æ"URI"£©½øÐж¨Î»¡£
URIÒ»°ãÓÉÈý²¿·Ö×é³É£º
·ÃÎÊ×ÊÔ´µÄÃüÃû»úÖÆ¡£
´æ·Å×ÊÔ´µÄÖ÷»úÃû¡£
×ÊÔ´×ÔÉíµÄÃû³Æ£¬ÓÉ·¾¶±íʾ¡£
¿¼ÂÇÏÂÃæµÄURI£¬Ëü±íʾÁ˵±Ç°µÄHTML ......

java»ñÈ¡Ô­×ÓÖÓʱ¼ä²¢¸Ä±ä±¾µØʱ¼ä

 package dtm.tools;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Calendar;
import java.util.Dat ......

Java 7µÄÐÂÌØÐÔ

ÎÒ¸Õ´ÓÔÚAntwerpÕÙ¿ªµÄDevoxx
´ó»áÉÏ»ØÀ´£¬»áÉϽéÉÜÁËJava7µÄÐÂÌØÐÔ£¬¶ÔÓ¦µÄJDK½«ÓÚ2010Äê9Ô·¢²¼¡£
ÏÂÃæÊÇ7¸öÒѾ­Íê³ÉµÄÐÂÌØÐÔ£º
¶ÔcollectionsµÄÓïÑÔ¼¶Ö§³Ö
×Ô¶¯×ÊÔ´¹ÜÀí
¸Ä½ø·ºÐÍÔÚ´´½¨ÊµÀýʱµÄÀàÐÍÒýÓÃ
´øÏ»®ÏßµÄÊý×Ö
ÔÚswitchÖÐʹÓÃString
¶þ½øÖÆÎÄ×Ö
¼ò»¯µÄ¿É±ä²ÎÊý·½·¨µ÷ÓÃ
Java7»¹ÓкܶàÆäËûµÄÐÂÌØÐÔ£¬Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ