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

javaÁ¬½ÓOracle

    »¨ÁËÁ½Ììʱ¼ä£¬ÖÕÓÚ°ÑaccessÊý¾Ý¿âÀïµÄÊý¾Ý»»µ½OracleÁË¡£µ±È»ÕâÆäÖÐÒª¸ÐлͬѧºÍ²©ÓѵÄÈÈÐÄ°ïÖúÀ­¡£ÏÖ½«½ñÌìµÄÊÕ»ñÕûÀíÏ¡£
    ÎÒÓõÄÊÇOracle 10 express edition°æ±¾£¬Õâ¸ö°æ±¾½¨Êý¾Ý¿âͦÂé·³µÄ£¬ËùÒÔÎÒ¾ÍÖ±½ÓÔÚËü×Ô´øµÄÊý¾Ý¿âXEϽ¨±íÁË¡£
    ×¢Ò⣺½¨±í¿ÉÒ»¶¨Òª×¢Òâ´óСдµÄŶ£¬Ä¬ÈÏʹÓõÄÊÇ´óд£¬±íÃûÓÐСдµÄ»°£¬ÐèÒª¼ÓË«ÒýºÅ£¬²Å¿ÉÒÔ²éѯµ½£¬·ñÔò¾Í³ö´íÁË¡£
   
    ½¨ºÃÊý¾Ý±íºó£¬¾ÍÊÇÁ¬½ÓÁË£¬Ð´ÁËÈý¸öÎļþ£¬DBConfig.property£¨ÅäÖÃÎļþ£¬¿ÉÒÔÑ¡ÔñÁ¬½Ó²»Í¬µÄÊý¾Ý¿âÀàÐÍ£©£¬DBConnection.java£¨Êý¾Ý¿âÁ¬½ÓÀࣩ£¬GetData.java£¨»ñÈ¡Êý¾ÝÀࣩ
    ×¢Ò⣺ÔÚÁ¬½Ó֮ǰ£¬Òª°ÑjdbcÇý¶¯(Ò»°ãÔÚ°²×°Â·¾¶\oraclexe\app\oracle\product\10.2.0\server\jdbc\libÏ£¬²»ÖªµÀÄĸöÓÐÓã¬ÎÒ¾ÍÁ½¸ö¶¼·ÅÉÏÈ¥ÁË£¬ºÇºÇ)·Åµ½tomcat\lib£¨D:\Program Files\Apache Software Foundation\Tomcat 6.0\lib£©ÏÂ
    DBConfig.property´úÂëÈçÏ£º
    //0:Access,1:MYSQL,2:MSSQL,3:Oracle
DBType=3
#Access
#Access
AccessDriver=sun.jdbc.odbc.JdbcOdbcDriver
#Access
AccessURL=jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
#Access
AccessPath=D:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/db/DreamNews.mdb
#MySQL
MySQLDriver=org.gjt.mm.mysql.Driver
#MySQL
#DreamTimeNews
MySQLURL=jdbc:mysql://localhost:3306/DreamTimeNews?user=dreamnews&password=dreamnews&useUnicode=true&characterEncoding=GBK
#SQL Server
#SQL Server
SQLDriver=net.sourceforge.jtds.jdbc.Driver
#SQL Server
#DreamTimeNews
SQLURL=jdbc:jtds:sqlserver://localhost:1433/DreamTimeNews;user=dreamnews;password=dreamnews
#Oracle
OracleDriver=oracle.jdbc.driver.OracleDriver
OracleURL=jdbc:oracle:thin:@localhost:1521:XE
OracleUsername=hr
OraclePassword=hr

DBConnection.java´úÂëÈçÏ£º
/***************************************************
*
* Դ�ļ���: DBConnecion.java
* �� �ܣ� ��ݿ�l���


Ïà¹ØÎĵµ£º

Java³ÌÐòÔ±ÃæÊÔ±ØÎʵÄÌâÄ¿£¬Äã»á¼¸µÀ£¿

       µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ 
¡¡¡¡µÚ¶þ£¬Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)? 
¡¡¡¡µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ(ÃæÊÔÌâÓеĺÜÁýͳ)¡£ 
¡¡¡¡µÚËÄ£ ......

Java Scanner NoSuchElementException

½ñÌìͬѧÎÊÎÒÒ»¸öJavaÎÊÌ⣬´úÂë½á¹¹ÈçÏ£º
Scanner scan = new Scanner(System.in);
scan.next();
scan.close();
scan = new Scanner(System.in);
scan.next(); 
µ±³ÌÐòÔËÐе½µÚÎåÐÐÊÇ»áÅ׳öjava.util.NoSuchElementException
          at&nb ......

JAVA³ÌÐòÔ±ÃæÊÔ32ÎÊ

JAVA³ÌÐòÔ±ÃæÊÔ32ÎÊ
µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£
final ÐÞÊηû£¨¹Ø¼ü×Ö£©Èç¹ûÒ»¸öÀà±»ÉùÃ÷Ϊfinal£¬Òâζ×ÅËü²»ÄÜÔÙÅÉÉú³öеÄ×ÓÀ࣬²»ÄÜ×÷Ϊ¸¸Àà±»¼Ì³Ð¡£Òò´ËÒ»¸öÀ಻Äܼȱ»ÉùÃ÷Ϊ abstractµÄ£¬ÓÖ±»ÉùÃ÷ΪfinalµÄ¡£½«±äÁ¿»ò·½·¨ÉùÃ÷Ϊfinal£¬¿ÉÒÔ±£Ö¤ËüÃÇÔÚʹÓÃÖв»±»¸Ä±ä¡£±»ÉùÃ÷ΪfinalµÄ±äÁ¿±ØÐëÔÚÉù ......

Java¶àÏ̱߳à³ÌÖеÄSynchronized

Synchronized£¬¹ËÃû˼Ò壬´ú±í¶à¸öÏß³ÌÖ®¼äµÄͬ²½¡£ÄÇô£¬ÔÚjava±à³ÌÖÐÈçºÎʹÓÃËüÄØ£¿ ÎÒÃǼÙÉèÕâÑùÒ»¸öÇé¿ö£º¶ÔÓÚͬһ¸ö±äÁ¿synDemo£¬ÎÒÃÇ·Ö±ðÔÚ2¸ö²»Í¬µÄÏß³ÌÖе÷ÓÃsynDemo.synMethord1()ÓësynDemo.synMethord2()¡£ package com.cnblogs.gpcuster;
/**
*
* @author Aaron.Guo
*
*/
public class Tester { ......

java퉀
ÏÈÉùÃ÷һϣ¬ÌâÄ¿Ô­³öÓÚ£ºhttp://gocom.primeton.com/modules/newbb/item60284_60284.htm
JVMÊÇJava³ÌÐòµÄÔËÐл·¾³£¬Òò´Ë¶ÔÓÚJVMµÄÕÆÎÕÓÐÖúÓÚÀí½âJava³ÌÐòµÄÖ´ÐÐÒÔ¼°±àд£¬ÓÈÆäÊÇÔËÐÐʱÅöµ½µÄһЩ¹îÒìÎÊÌ⣬ÄÇôÔõôÑùÄÜ¿¼²ì×Ô¼º¶ÔÓÚJVM¹Ø¼ü֪ʶµãµÄÕÆÎÕÇé¿ö£¬°ïÖúѧϰJVM»úÖÆÄØ£¬ÔÚÕâƪblogÖÐÀ´Ì½ÌÖÏ¡£
¶ÔÓÚJava³ÌÐò¶øÑ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ