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

JAVAÖеÄÖ¸Õë,ÒýÓü°¶ÔÏóµÄclone

JavaÓïÑÔµÄÒ»¸öÓŵã¾ÍÊÇÈ¡ÏûÁËÖ¸ÕëµÄ¸ÅÄµ«Ò²µ¼ÖÂÁËÐí¶à³ÌÐòÔ±ÔÚ±à³ÌÖг£³£ºöÂÔÁ˶ÔÏóÓëÒý
ÓõÄÇø±ð£¬±¾ÎÄ»áÊÔͼ³ÎÇåÕâÒ»¸ÅÄî¡£²¢ÇÒÓÉÓÚJava²»ÄÜͨ¹ý¼òµ¥µÄ¸³ÖµÀ´½â¾ö¶ÔÏó¸´ÖƵÄÎÊÌ⣬ÔÚ¿ª·¢¹ý³ÌÖУ¬Ò²³£³£ÒªÒªÓ¦ÓÃclone£¨£©·½·¨À´¸´ÖƶÔ
Ïó¡£±¾ÎÄ»áÈÃÄãÁ˽âʲôÊÇÓ°×ÓcloneÓëÉî¶Èclone£¬ÈÏʶËüÃǵÄÇø±ð¡¢Óŵ㼰ȱµã¡£
¿´µ½Õâ¸ö±êÌ⣬ÊDz»ÊÇÓеãÀ§»ó£ºJavaÓïÑÔÃ÷ȷ˵Ã÷È¡ÏûÁËÖ¸Õ룬ÒòΪָÕëÍùÍùÊÇÔÚ´øÀ´·½±ãµÄͬʱҲÊǵ¼Ö´úÂë²»°²È«µÄ¸ùÔ´£¬Í¬Ê±Ò²»áʹ³ÌÐòµÄ±äµÃ·Ç³£¸´
ÔÓÄÑÒÔÀí½â£¬ÀÄÓÃÖ¸Õëд³ÉµÄ´úÂë²»ÑÇÓÚʹÓÃÔçÒѳôÃûÕÑÖøµÄ"GOTO"Óï¾ä¡£Java·ÅÆúÖ¸ÕëµÄ¸ÅÄî¾ø¶ÔÊǼ«ÆäÃ÷Öǵġ£µ«ÕâÖ»ÊÇÔÚJavaÓïÑÔÖÐûÓÐÃ÷È·
µÄÖ¸Õ붨Ò壬ʵÖÊÉÏÿһ¸önewÓï¾ä·µ»ØµÄ¶¼ÊÇÒ»¸öÖ¸ÕëµÄÒýÓã¬Ö»²»¹ýÔÚ´ó¶àʱºòJavaÖв»ÓùØÐÄÈçºÎ²Ù×÷Õâ¸ö"Ö¸Õë"£¬¸ü²»ÓÃÏóÔÚ²Ù×÷C£«£«µÄÖ¸ÕëÄÇ
Ñùµ¨Õ½Ðľª¡£Î¨Ò»Òª¶à¶à¹ØÐĵÄÊÇÔÚ¸øº¯Êý´«µÝ¶ÔÏóµÄʱºò¡£ÈçÏÂÀý³Ì£º
package reference;
class Obj{
String str = "init value";
public String toString(){
return str;
}
}
public class ObjRef{
Obj aObj = new Obj();
int aInt = 11;
public void changeObj(Obj inObj){
inObj.str = "changed value";
}
public void changePri(int inInt){
inInt = 22;
}
public static void main(String[] args)
{
ObjRef oRef = new ObjRef();
System.out.println("Before call changeObj() method: " + oRef.aObj);
oRef.changeObj(oRef.aObj);
System.out.println("After call changeObj() method: " + oRef.aObj);
System.out.println("==================Print Primtive=================");

System.out.println("Before call changePri() method: " + oRef.aInt);
oRef.changePri(oRef.aInt);
System.out.println("After call changePri() method: " + oRef.aInt);
}
}
/* RUN RESULT
Before call changeObj() method: init value
After call changeObj() method: changed value
==================Print Primtive=================
Before call changePri() method: 11
After call changePri() method: 11
*
*/
Õâ¶Î´úÂëµÄÖ÷Òª²¿·Öµ÷ÓÃÁËÁ½¸öºÜÏà½üµÄ·½·¨£¬changeObj()ºÍchangePri()¡£Î¨Ò»²»Í¬µÄÊÇËüÃÇÒ»¸ö°Ñ¶


Ïà¹ØÎĵµ£º

javaµ÷Óô洢¹ý³ÌÎÞ·¨È¡µÃ·µ»Ø²ÎÊý

»·¾³£ºÊý¾Ý¿âsql server2005£¬jdk1.6 £¬myeclipse£¬Çý¶¯jdts1.2.2
Ö´ÐÐÒÔÏ´úÂ룬±¨´í£º
String querySQL = "{?=call p_sys_manager_csReport(?,?,?,?,?)}";
cstmt = conn.prepareCall(querySQL);
cstmt.registerOutParameter(1, java.sql.Types.INTEGER);
cstmt.setInt(2, modType);
cstmt.setInt(3, dptI ......

JAVAÐéÄâ»úÄÚ´æÉèÖÃ

»ù±¾¸ÅÄ
PermGen space£ºÈ«³ÆÊÇPermanent Generation space¡£¾ÍÊÇ˵ÊÇÓÀ¾Ã±£´æµÄÇøÓò,ÓÃÓÚ´æ·ÅClassºÍMetaÐÅÏ¢,ClassÔÚ±»LoadµÄʱºò±»·ÅÈë¸ÃÇøÓò
Heap space£º´æ·ÅInstance¡£ GC(Garbage Collection)Ó¦¸Ã²»»á¶ÔPermGen space½øÐÐÇåÀí
ËùÒÔÈç¹ûÄãµÄAPP»áLOADºÜ¶àCLASSµÄ»°,¾ÍºÜ¿ÉÄܳöÏÖPermGen space´íÎó
Java Hea ......

Java»ñÈ¡Oracle´æ´¢¹ý³ÌÖÐÖ´Ðвéѯ·µ»ØµÄ½á¹û¼¯

ͨ¹ýJAVAµ÷ÓÃORACLEµÄ´æ´¢¹ý³Ì£¬ÔÚORACLEµÄ´æ´¢¹ý³ÌÄÚ²¿×öÁËÒ»¸ö²éѯÔÚJAVAÖлñÈ¡¸Ã²éѯ½á¹û£¬Õâ¸öºÍSYBASE¡¢SQLSERVERµÄ»ñÈ¡²»Ò»Ñù£¬µÈÎÒµÄÏÂһƪÎÄÕÂÎÒ»á½éÉÜÈçºÎ»ñÈ¡SYBASE¡¢SQLSERVERÔÚ´æ´¢¹ý³ÌÖÐÖ´ÐÐÁ˲éѯºóÈçºÎ»ñÈ¡Æä½á¹û¼°´æ´¢¹ý³ÌµÄ±àд¡£
ÔÚOracleÖÐÐèÒª·µ»Ø²éѯ½á¹û¼¯£¬±ØÐ뽫ÆäÒÔÓαêµÄÐÎʽ·µ»Ø£¬µ«ÓαêÓÖ²»ÊÇ ......

½«java³ÌÐò°²×°³Éwindows·þÎñ

×î½ü¹¤×÷ÐèÒª½«java³ÌÐò´ò°ü·¢²¼£¬²¢ÇÒÄÜ°²×°³Éwindows·þÎñ£¬¶øÇÒÐèÒªÔÚûÓа²×°jreµÄ»úÆ÷ÉÏÔËÐС£Ñо¿ÁËÒ»ÏÂjava service wrapper£¬ÔÚÍøÉÏÕÒÁËÏà¹ØµÄ×ÊÁÏ£¬µ«ÊǶ¼ËµµÃ²»ÊǺÜÏêϸ£¬ÕÕ×Å×öÓÐÒ»¶¨ÄѶȡ£ËùÒÔÎÒ·Ö²½×ܽáÁËһϣ¬Ï£Íû¸øÓöµ½ÏàͬÎÊÌâµÄͬÈÊÒ»µã°ïÖú¡£
1.       Ê×ÏÈÏÂÔØjava serv ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ