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

javaµ÷Óô洢¹ý³ÌµÄÀý×Ó

package protest;
import java.sql.*;
/**
 create proc proc_select
             @lname varchar(20),
             @address varchar(20) output
as
        select   @address=address from userinfo where loginname=@lname
GO
 */
public class ProExecute {
    public ProExecute() {
    }
    public static void main(String args[]) {
       try{
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//¼ÓÔØÇý¶¯
        Connection con = DriverManager.getConnection("Jdbc:Odbc:test", "sa", "sa"); //»ñµÃÁ¬½Ó
        String call = "{call proc_select(?,?)}"; //µ÷ÓÃÓï¾ä
        CallableStatement proc = con.prepareCall(call); //µ÷Óô洢¹ý³Ì
        proc.setString(1, "zhangdan"); //¸øÊäÈë²ÎÊý´«Öµ
        proc.registerOutParameter(2,Types.VARCHAR); //ÉùÃ÷Êä³ö²ÎÊýÊÇʲôÀàÐ͵Ä,¶¨ÒåÓÃÓÚ±êʶһ°ã SQL ÀàÐÍ£¨³ÆΪ JDBC ÀàÐÍ£©µÄ³£Á¿µÄÀà
        proc.execute(); //Ö´ÐÐ
        String address = proc.getString(2); //»ñµÃÊä³ö²ÎÊý
        System.out.println(address);
       } catch(Exception e){
            e.printStackTrace();
        }
    }
}


Ïà¹ØÎĵµ£º

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×Ü½á µÚ°ËÕÂ

µÚ°ËÕÂ Òì³£
Òì³£
Á½Àà ´íÎóerror ϵͳÄÚ²¿´íÎó Î¥Àýexception ÆäËû±à³Ì´íÎó»òÍâÔÚÒòËØ¡¿
Òì³£´¦Àí»úÖÆ
Å׳öÒì³£throw µ±²»È·¶¨ÎªºÎÖÖÒì³£ºÍ²»È·¶¨Ôõô´¦ÀíµÄʱºòʹÓÃ
²¶»ñÒì³£catch
try{}
catch(){}
finally{}Ϊͳһ³ö¿Ú
fileinputstreamÀàµÄ³ÉÔ±·½·¨read()µÄ¹¦ÄÜÊÇÿ´Î´ÓÏàÓ¦µÄ(±¾µØΪasc2Âë)ÎļþÖжÁ³öÒ»¸ö×Ö½Ú ......

»ùÓÚJava 2ƽ̨µÄÒýÓÃÀàʹÓÃÖ¸ÄÏ

Java 2 ƽ̨ÒýÈëÁË java.lang.ref °ü£¬ÆäÖаüÀ¨µÄÀà¿ÉÒÔÈÃÄúÒýÓöÔÏ󣬶ø²»½«ËüÃÇÁôÔÚÄÚ´æÖС£ÕâЩÀ໹ÌṩÁËÓëÀ¬»øÊÕ¼¯Æ÷£¨garbage collector£©Ö®¼äÓÐÏ޵Ľ»»¥¡£Peter Haggar ÔÚ±¾ÎÄÖзÖÎöÁË SoftReference ¡¢ WeakReference ºÍ PhantomReference ÀàµÄ¹¦ÄܺÍÐÐΪ£¬²¢¾ÍÕâЩÀàµÄʹÓøø³öÁËһЩ±à³Ì·ç¸ñÉϵĽ¨Òé¡£
µ±ÔÚ Ja ......

JavaÓëXMLÁªºÏ±à³ÌÖ®SAXƪ


SAX¸ÅÄî

SAXÊÇSimple API for XML
µÄËõд£¬Ëü²¢²»ÊÇÓÉW3C¹Ù·½ËùÌá³öµÄ±ê×¼£¬¿ÉÒÔ˵ÊÇ“Ãñ¼ä”µÄÊÂʵ±ê×¼¡£Êµ¼ÊÉÏ£¬ËüÊÇÒ»ÖÖÉçÇøÐÔÖʵÄÌÖÂÛ²úÎï¡£ËäÈ»Èç´Ë£¬ÔÚXMLÖжÔSAXµÄÓ¦ÓÃË¿ºÁ²»±ÈDOMÉÙ£¬¼¸ºõËùÓеÄXML½âÎöÆ÷¶¼»áÖ§³ÖËü¡£

Óë
DOM±È½Ï¶øÑÔ£¬SAXÊÇÒ»ÖÖÇáÁ¿Ð͵ķ½·¨¡£ÎÒÃÇÖªµÀ£¬ÔÚ´¦ÀíDOMµÄʱºò£¬Î ......

JAVA IOÁ÷µÄÓ¦ÓÃ

JAVA IOÁ÷µÄÓ¦ÓÃ
 
 
 
IOÁ÷µÄµäÐÍÓ¦ÓÃ
¾¡¹Ü¿âÄÚ´æÔÚ´óÁ¿IOÁ÷À࣬¿Éͨ¹ý¶àÖÖ²»Í¬µÄ·½Ê½×éºÏµ½Ò»Æ𣬵«Êµ¼ÊÉÏÖ»Óм¸ÖÖ·½Ê½²Å»á¾­³£Óõ½¡£È»¶ø£¬±ØÐëСÐÄÔÚÒâ²ÅÄܵõ½ÕýÈ·µÄ×éºÏ¡£ÏÂÃæÕâ¸öÏ൱³¤µÄÀý×ÓչʾÁ˵äÐÍIOÅäÖõĴ´½¨ÓëʹÓ㬿ÉÔÚд×Ô¼ºµÄ´úÂëʱ½«Æä×÷Ϊһ¸ö²Î¿¼Ê¹Óá£×¢Òâÿ¸öÅäÖö¼ÒÔÒ»¸ö×¢ÊÍÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ