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

JAVAÖеĴ«µÝ¶¼ÊÇÖµ´«µÝÂð£¿ÓÐûÓÐÒýÓô«µÝÄØ£¿

JAVAÖеĴ«µÝ¶¼ÊÇÖµ´«µÝÂð£¿ÓÐûÓÐÒýÓô«µÝÄØ£¿
ÔڻشðÕâÁ½¸öÎÊÌâǰ£¬ÈÃÎÒÃÇÊ×ÏÈÀ´¿´Ò»¶Î´úÂ룺
Java´úÂë
public class ParamTest {
// ³õʼֵΪ0
protected int num = 0;
// Ϊ·½·¨²ÎÊýÖØÐ¸³Öµ
public void change(int i) {
i = 5;
}
// Ϊ·½·¨²ÎÊýÖØÐ¸³Öµ
public void change(ParamTest t) {
ParamTest tmp = new ParamTest();
tmp.num = 9;
t = tmp;
}
// ¸Ä±ä·½·¨²ÎÊýµÄÖµ
public void add(int i) {
i += 10;
}
// ¸Ä±ä·½·¨²ÎÊýÊôÐÔµÄÖµ
public void add(ParamTest pt) {
pt.num += 20;
}
public static void main(String[] args) {
ParamTest t = new ParamTest();
System.out.println("²ÎÊý--»ù±¾ÀàÐÍ");
System.out.println("Ô­ÓеÄÖµ£º" + t.num);
// Ϊ»ù±¾ÀàÐͲÎÊýÖØÐ¸³Öµ
t.change(t.num);
System.out.println("¸³ÖµÖ®ºó£º" + t.num);
// ΪÒýÓÃÐͲÎÊýÖØÐ¸³Öµ
t.change(t);
System.out.println("ÔËËãÖ®ºó£º" + t.num);
System.out.println();
t = new ParamTest();
System.out.println("²ÎÊý--ÒýÓÃÀàÐÍ");
System.out.println("Ô­ÓеÄÖµ£º" + t.num);
// ¸Ä±ä»ù±¾ÀàÐͲÎÊýµÄÖµ
t.add(t.num);
System.out.println("¸³ÒýÓúó£º" + t.num);
// ¸Ä±äÒýÓÃÀàÐͲÎÊýËùÖ¸Ïò¶ÔÏóµÄÊôÐÔÖµ
t.add(t);
System.out.println("¸ÄÊôÐÔºó£º" + t.num);
}
}
public class ParamTest {
// ³õʼֵΪ0
protected int num = 0;
// Ϊ·½·¨²ÎÊýÖØÐ¸³Öµ
public void change(int i) {
i = 5;
}
// Ϊ·½·¨²ÎÊýÖØÐ¸³Öµ
public void change(ParamTest T) {
ParamTest tmp = new ParamTest();
tmp.num = 9;
T = tmp;
}
// ¸Ä±ä·½·¨²ÎÊýµÄÖµ
public void add(int i) {
i += 10;
}
// ¸Ä±ä·½·¨²ÎÊýÊôÐÔµÄÖµ
public void add(ParamTest pt) {
pt.num += 20;
}
public static void main(String[] args) {
ParamTest t = new ParamTest();
System.out.println("²ÎÊý--»ù±¾ÀàÐÍ");
System.out.println("Ô­ÓеÄÖµ£º" + t.num);
// Ϊ»ù±¾ÀàÐͲÎÊýÖØÐ¸³Öµ
t.change(t.num);
System.out.println("¸³ÖµÖ®ºó£º" + t.num);
// ΪÒýÓÃÐͲÎÊýÖØÐ¸³Öµ
t.change(t);
System.out.println("ÔËËãÖ®ºó£º" + t.num);
System.out.println();
t = new ParamTest();
System.out.println("²ÎÊý--ÒýÓÃÀàÐÍ");
System.ou


Ïà¹ØÎĵµ£º

JavaÐÔÄÜÓÅ»¯¼¼Çɼ¯½õ

1.1 ²»ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀý
¡¡¡¡ÓÃnew¹Ø¼ü´Ê´´½¨ÀàµÄʵÀýʱ£¬¹¹Ô캯ÊýÁ´ÖеÄËùÓй¹Ô캯Êý¶¼»á±»×Ô¶¯µ÷Óᣵ«Èç¹ûÒ»¸ö¶ÔÏóʵÏÖÁËCloneable½Ó¿Ú£¬ÎÒÃÇ¿ÉÒÔµ÷ÓÃËüµÄclone()·½·¨¡£clone()·½·¨²»»áµ÷ÓÃÈκÎÀ๹Ô캯Êý¡£
¡¡¡¡ÔÚʹÓÃÉè¼ÆÄ£Ê½£¨Design Pattern£©µÄ³¡ºÏ£¬Èç¹ûÓÃFactoryģʽ´´½¨¶ÔÏó£¬Ôò¸ÄÓÃclone()·½·¨´´½¨Ðµ ......

JAVAÅàѵÌâ¿â JavaScript

1. JavaScriptÊÇÒ»ÃÅ»ùÓÚ½âÊÍÐÔµÄÓïÑÔ£¬ËüºÍjavaÓïÑÔµÄÇø±ð£¿
²Î¿¼´ð°¸£ºjavaÓïÑÔÖбäÁ¿µÄÊý¾ÝÀàÐÍ×ÜÌå¿ÉÒÔ·ÖΪ£º»ù±¾Êý¾ÝÀàÐͺͶÔÏóÀàÐÍ¡£JSÓïÑÔÖеıäÁ¿ÊÇûÓÐÊý¾ÝÀàÐ͵쬵«ÊÇJSµÄ»ù±¾³ÌÐò¿ØÖƺÍjavaÊÇÒ»ÑùµÄÔÚJavaScriptÓïÑÔÖУ¬ËäÈ»±äÁ¿ÊÇûÓÐÊý¾ÝÀàÐÍ»òÕßÊÇÈôÊý¾ÝÀàÐ͵«ÊÇËûÃǵÄÖµÊÇÓÐÈýÖÖ»ù±¾Êý¾ÝÀàÐ͵ķֱðÊÇÊý×Ö¡ ......

Using Google is AJAX Search API with Java ...

http://www.ajaxlines.com/ajax/stuff/article/using_google_is_ajax_search_api_with_java.php
I was rather depressed over a year ago when Google deprecated their SOAP Search API with their AJAX Search API. Essentially Google was saying that they didn want anyone programmatically accessing Google search ......

JAVA ÅàѵÌâ¿â Spring

Ò»¡¢Spring»ù´¡ÖªÊ¶¼°IOC_Ñ¡ÔñÌâ
1. ÏÂÃæ¹ØÓÚspringÃèÊö´íÎóµÄÊÇ£º£¨ £©
A  SpringÖ§³Ö¿É²åÈëµÄÊÂÎñ¹ÜÀíÆ÷£¬Ê¹ÊÂÎñ»®·Ö¸üÇáËÉ£¬Í¬Ê±ÎÞÐè´¦Àíµ×²ãµÄÎÊÌâ¡£
B  SpringÊÂÎñ¹ÜÀíµÄͨÓóéÏó²ã»¹°üÀ¨JTA²ßÂÔºÍÒ»¸öJDBC DataSource¡£
C  ÓëJTA»òEJB CMTÒ»Ñù£¬SpringµÄÊÂÎñÖ§³ÖÒÀÀµÓÚJava EE»·¾³¡£
D  Spr ......

JavaÂÒÂëÔ­Òò

1¡¢Ò³Ãæ±àÂëÓëºǫ́Àà±àÂë²»Ò»Ö¡£
2¡¢ºǫ́ÀàÓëÊý¾Ý¿â½»»¥±£³ÖÊý¾Ýʱ²úÉúÂÒÂë¡£½â¾ö·½·¨£º¿ÉÒÔÔÚÇý¶¯µÄurl²ÎÊýÖÐÖ¸¶¨¡£
3¡¢¶ÁÎļþ/Á÷ʱ²úÉúÂÒÂë¡£½â¾ö·½·¨£º½¨ÒéʹÓÃFileReaderºÍFileWriterµÄ¸¸ÀࣺInputStreamReader/OutputStreamWriter£¬ËüÃÇÔÚ¹¹Ô캯ÊýÖпÉÒÔÖ¸¶¨±àÂëÀàÐÍ£ºInputStreamReader(InputStream in, Charset c ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ