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
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
l JBS
1.Áоٳö 10¸öJAVAÓïÑÔµÄÓÅÊÆ
a:Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨(ƽ̨¶ÀÁ¢ÐÔ)£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬ÆóÒµÓ¦ÓõijÉÊìÆ½Ì¨, ÎÞÏßÓ¦ÓÃ
2.ÁоٳöJAVAÖÐ10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
a:°ü£¬À࣬½Ó¿Ú£¬¶ÔÏó£¬ÊôÐÔ£¬·½·¨£¬¹¹ÔìÆ÷£¬¼Ì³Ð£¬·â×°£¬¶à̬£¬³éÏ󣬷¶ÐÍ
3.ÁоٳöJAVAÖÐ6¸ ......
ÒÔÏÂÊÇÔÚÍøÉÏÕÒµ½µÄ±ðÈË×ܽáµÄѧϰ·½·¨£¬¾Ñé½è¼øÖС£
1. JavaÓïÑÔ»ù´¡
̸µ½JavaÓïÑÔ»ù´¡Ñ§Ï°µÄÊé¼®£¬´ó¼Ò¿Ï¶¨»áÍÆ¼öBruce EckelµÄ¡¶Thinking in Java¡·¡£ËüÊÇÒ»±¾Ð´µÄÏ൱Éî¿ÌµÄ¼¼ÊõÊé¼®£¬JavaÓïÑÔ»ù´¡²¿·Ö»ù±¾Ã»ÓÐÆäËüÈκÎÒ»±¾Êé¿ÉÒÔ³¬Ô½Ëü¡£¸ÃÊéµÄ×÷ÕßBruce EckelÔÚÍøÂçÉϱ»³ÆÎªÌì²ÅµÄͶ»úÕߣ¬×÷Õߵġ¶Thinking in C+ ......
1£® ÔÚ¹¤³ÌÖд´½¨¼àÌýÀàSessionListener ²¢ÇÒʵÏÖHttpSessionListener½Ó¿Ú£¬´úÂëÈçÏÂ
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class SessionListener implements HttpSessionListener {
private static ......