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

Thinking in Javaѧϰ±Ê¼Ç£¨Ò»£©

ÔÚjava³ÌÐòÖУ¬ÍòÊÂÍòÎï½Ô¶ÔÏ󣬼´Ê¹ÊÇjava³ÌÐò±¾Éí£¬Ò²ÊÇÒ»¸ö¶ÔÏó
Ò»¡¢ReferenceÊDzÙ×ݶÔÏóÖ®Ô¿³×
             cÓïÑÔÖÐÊÇʹÓÃÖ¸ÕëÀ´²Ù×ݶÔÏóµÄ£¬µ«ÊÇjavaÄØ£¿ÓõÄÊÇreferenceÀ´²Ù×ݶÔÏó£¬ÎÒϰ¹ß°ÑËû½Ð×ö¾ä±ú£¬¾ä±úºÍ¶ÔÏóµÄ¹ØÏµ¾ÍÏëÊǵçÊÓÒ£¿ØÆ÷ºÍµçÊÓ»úµÄ¹ØÏµÒ»Ñù£¬¼ÈÈ»ÊÇÕâÑù£¬ÄÇôң¿ØÆ÷ºÍµçÊÓ»ú¶¼ÊÇ¿ÉÒÔ¶ÀÁ¢³öÏÖµÄ
           ÀýÈ磺String name;
            Õâ¸öjavaÓï¾äÖ»»á²úÉú¾ä±ý£¨Ò£¿ØÆ÷£©£¬²¢²»²úÉúʵ¼ÊµÄ¶ÔÏ󣨵çÊÓ»ú£©£¬¾ÍÏëÄãÀÏÆÅ»¹Ã»Éúº¢×Ó֮ǰÄãÃǾͰÑÃû×Ö¸øÈ¡ºÃÁËÒ»Ñù£¬¾ä±ú²¢Ã»ÓÐÁ¬½Óµ½Êµ¼ÊµÄ¶ÔÏóÉÏ¡£Õâ¸öÑù×Óд´úÂëÊDz»ÍƼöµÄ£¬Ò»¸öûÓÐÖ¸Ïò¶ÔÏóµÄ¾ä±úÔÚµ÷ÓõÄʱºò±àÒëÆ÷»á±§´í£¬Ó¦µ±Ê¹ÓÃString name="baby";£¬»òÕßʹÓÃString name =new String("baby");ÕâÀïnewµÄÒâ˼ÊDzúÉúÒ»¸östringÀàÐ͵ĶÔÏ󣬲¢ÇÒÕâ¸östring½Ð×öbaby¡£Õâ2¸ö·½·¨¶¼¿ÉÒÔʵÏÖ¶ÔÏóµÄ½¨Á¢¡£
¶þ¡¢ËùÓеĶÔÏó¶¼ÐèÒªÄãÀ´½¨Á¢
       1¡¢´¢´æÔÚÄÇÀï
             a¡¢¼Ä´æÆ÷  ÕâÀïÊǺËÐĵĴ洢¿Õ¼ä£¬ÎÒÃÇÊÇû°ì·¨²Ù×ݵÄ
             b¡¢Õ» £¨stack £©ÕâÀïµÄ´æÈ¡Ëٶȿ죬ЧÂʸߣ¬ÒòΪÕâÀïÒªÇó±»´æ´¢µÄÊý¾ÝÓоßÌå´óСºÍ´æ»îʱ¼äÏÞÖÆ£¬Ê¹Óõ¯ÐÔС£¬ÕâÀïÒ»°ã´æ´¢µÄÊÇÎÒÃǵĶÔÏó¾ä±ú£¬¶ø¶ÔÏóÊDz»´æÔÚÕâÀïµÄ
             c¡¢¶Ñ £¨heap£© ÕâÀïÊÇͨÓõĴ洢¿Õ¼ä£¬Ëû±ÈstackºÃÔÚ±àÒëÆ÷²»ÐèÒªÖªµÀʵ¼ÊÔÚheapÖд洢Êý¾ÝµÄ´óС£¬Ò²²»ÖªµÀÕâ¸ö¿Õ¼äÐèÒª·ÖÅä¶à³¤Ê±¼ä£¬µ¯ÐԺã¬ËùÒÔÓÃÀ´´æ´¢¶ÔÏ󣬵«ÊÇËÙ¶ÈÒª±ÈstackÂýºÜ¶à
             d¡¢¾²Ì¬´æ´¢¿Õ¼ä£¨static storage£©ÕâÀïÊÇ´æ·Å±»ÉùÃ÷ΪstaticµÄÌØ¶¨³ÉÔ±£¬java¶ÔÏó±¾ÉíÊDz»»á·ÖÅäÔÚÕâÀïµÄ
             e¡¢³£Á¿´¢´æ¿Õ¼ä ÕâÀï´æ·ÅµÄÊdzÌÐòÖеij£Á¿£¬³£Á¿Öµ²»»á¸Ä±ä£¬×ȫ
             f


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

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Ïß³Ì

Ò»ÖÖÊǼ̳Ð×ÔThreadÀà.Thread ÀàÊÇÒ»¸ö¾ßÌåµÄÀ࣬¼´²»ÊdzéÏóÀ࣬¸ÃÀà·â×°ÁËÏ̵߳ÄÐÐΪ¡£Òª´´½¨Ò»¸öỊ̈߳¬³ÌÐòÔ±±ØÐë´´½¨Ò»¸ö´Ó Thread Àർ³öµÄÐÂÀà¡£³ÌÐòԱͨ¹ý¸²¸Ç Thread µÄ run() º¯ÊýÀ´Íê³ÉÓÐÓõŤ×÷¡£Óû§²¢²»Ö±½Óµ÷Óô˺¯Êý£»¶øÊÇͨ¹ýµ÷Óà Thread µÄ start() º¯Êý£¬¸Ãº¯ÊýÔÙµ÷Óà run()¡£
   
&nb ......

JavaÊý×éÓëÈÝÆ÷Àà·ÖÎö×ÊÁÏ Êý×é¡¢ListºÍSet¡¢MapµÈ

Êý×éÊÇJavaÓïÑÔÄÚÖõÄÀàÐÍ£¬³ý´ËÖ®Í⣬JavaÓжàÖÖ±£´æ¶ÔÏóÒýÓõķ½Ê½¡£JavaÀà¿âÌṩÁËÒ»Ì×Ï൱ÍêÕûµÄÈÝÆ÷À࣬ʹÓÃÕâЩÀàµÄ·½·¨¿ÉÒÔ±£´æºÍ²Ù×ݶÔÏó¡£ÏÂÃæ·Ö±ð½øÐÐÌÖÂÛ£¬ÔÚÑо¿JavaÈÝÆ÷Àà֮ǰ£¬ÏÈÁ˽âÒ»ÏÂJavaÊý×éµÄ»ù±¾¹¦ÄܺÍÌØÐÔ¡£
1. Êý×éµÄ»ù±¾ÌØÐÔ
Êý×éÓëÆäËüÖÖÀàµÄÈÝÆ÷(List/Set/Map)Ö®¼äµÄÇø±ðÔÚÓÚЧÂÊ¡¢È ......

ת[ÊÕ¼¯javaµÄ³£Óú¯Êý´úÂë]

package net.java2000.tools;
/**
* Title:        Java Bean ¹¤¾ß
* Description:
* Copyright:    Copyright (c) 2001
* Company:      JAVAÊÀ¼ÍÍø 
* @author ÕÔѧÇì
* @version 1.0
*/
import java.util.*;
import ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ