´«ÖDz¥¿Íjavaѧϰ2
½ñÌìºÜ¸ßÐË¿´ÁËÕÅТÏéÀÏʦ½²µÄJava»ù´¡ÊÓƵ¡£
ÕÅÀÏʦÊ×ÏȽ²µÄÊÇfinal¡¢super¡¢this staticµÄÓ÷¨£¬ÕÅÀÏʦÊÇÕâÑù½²µÄ£¬ÎÒ×öÁËһЩ¼òµ¥µÄ¼Ç¼£º
1. finalÀàÊDz»ÄÜÔÙ±»¼Ì³ÐµÄÀ࣬¼´Ëü²»ÄÜÔÙÓÐ×ÓÀ࣬
2. final·½·¨²»Äܱ»×ÓÀàµÄ·½·¨¸²¸Ç£¬ÓÃÀ´·ÀÖ¹×ÓÀà¸Ä±äËüµÄ±¾À´º¬Ò壬
3. ·½·¨Öж¨ÒåµÄÄÚÖÃÀàÖ»ÄÜ·ÃÎʸ÷½·¨ÄÚµÄfinalÀàÐ͵ľֲ¿±äÁ¿£¬ÓÃfinal¶¨ÒåµÄ¾Ö²¿±äÁ¿Ï൱ÓÚÊÇÒ»¸ö³£Á¿£¬ËüµÄÉúÃüÖÜÆÚ³¬³ö·½·¨ÔËÐеÄÉúÃüÖÜÆÚ£¬½«Ò»¸öÐβζ¨Òå³ÉfinalÒ²ÊÇ¿ÉÒԵģ¬Õâ¾ÍÏÞ¶¨ÁËÎÒÃÇÔÚ·½·¨ÖÐÐÞ¸ÄÐÎʽ²ÎÊýµÄÖµ¡£
4. static¾²Ì¬·½·¨£ºÔÚ¾²Ì¬·½·¨ÀïÖ»ÄÜÖ±½Óµ÷ÓÃͬÀàÖÐÆäËüµÄ¾²Ì¬³ÉÔ±£¨°üÀ¨±äÁ¿ºÍ·½·¨£©£¬¶ø²»ÄÜÖ±½Ó·ÃÎÊÀàÖеķǾ²Ì¬³ÉÔ±¡£ÕâÊÇÒòΪ£¬¶ÔÓڷǾ²Ì¬µÄ·½·¨ºÍ±äÁ¿£¬ÐèÒªÏÈ´´½¨ÀàµÄʵÀý¶ÔÏóºó²Å¿ÉʹÓ㬶ø¾²Ì¬·½·¨ÔÚʹÓÃÇ°²»Óô´½¨ÈκζÔÏó¡£
5. ¾²Ì¬·½·¨²»ÄÜÒÔÈκη½Ê½ÒýÓÃthisºÍsuper¹Ø¼ü×Ö£¨super¹Ø¼ü×ÖÔÚÏÂÒ»Õ½²½â£©¡£ÓëÉÏÃæµÄµÀÀíÒ»Ñù£¬ÒòΪ¾²Ì¬·½·¨ÔÚʹÓÃÇ°²»Óô´½¨ÈκÎʵÀý¶ÔÏ󣬵±¾²Ì¬·½·¨±»µ÷ÓÃʱ£¬thisËùÒýÓõĶÔÏó¸ù±¾¾ÍûÓвúÉú¡£
6. main() ·½·¨ÊǾ²Ì¬µÄ£¬Òò´ËJVMÔÚÖ´ÐÐmain·½·¨Ê±²»´´½¨main·½·¨ËùÔÚµÄÀàµÄʵÀý¶ÔÏó£¬Òò¶øÔÚmain()·½·¨ÖУ¬ÎÒÃDz»ÄÜÖ±½Ó·ÃÎʸÃÀàÖеķǾ²Ì¬³ÉÔ±£¬±ØÐë´´½¨¸ÃÀàµÄÒ»¸öʵÀý¶ÔÏóºó£¬²ÅÄÜͨ¹ýÕâ¸ö¶ÔÏóÈ¥·ÃÎÊÀàÖеķǾ²Ì¬³ÉÔ±£¬
superµÄÓÃ;£ºµ±×ÓÀàÒþ²ØÁ˳¬ÀàµÄ³ÉÔ±±äÁ¿»ò¸²¸ÇÁ˳¬ÀàµÄ·½·¨ºó£¬ÀûÓÃsuper£¬×ÓÀà·½·¨¿ÉÒÔÒýÓó¬ÀàµÄ³ÉÔ±±äÁ¿ºÍ±»¸²¸ÇµÄ·½·¨£¨»¹¿ÉÒÔµ÷Óó¬ÀàµÄ¹¹Ôì·½·¨£¬·½·¨ÒÔ¼°³ÉÔ±±äÁ¿£©
thisµÄÓÃ;£º
1. ½«¶ÔÏó×Ô¼º×÷Ϊ²ÎÊý£¬µ÷ÓñðµÄ·½·¨£¬
2.
Ïà¹ØÎĵµ£º
Java ¶ÁÈ¡ MySQL ÖÐÎÄ ÂÒÂë
³¡¾°:Java,eclipse£¬¶ÁÈ¡MySQLÊý¾Ý¿â£¬MySQL±àÂëΪutf-8
ÎÊÌ⣺¶Á³öÀ´µÄÖÐÎÄÔÚeclipseµÄÊä³ö´°¿ÚÖÐÏÔʾΪÂÒÂë
´íÎóµÄд·¨
1
System.out.print(new String( rs.getString("bib_author").getBytes("utf-8"),"GBK" ));
2
System.out.print( ......
Ê×ÏÈ£¬¶ÔÓÚÎÒÄØ£¬ÊÇ´ÓÊÂ.net CFµÄ¹¤×÷µÄ£¬µ«×Ô´ÓײÉÏÁËhtc heroºó£¬ÎÒ£¬ÉîÉîµÄÃÔÁË£¬µ«ÔÚAndroidÏ¿ª·¢£¬»ù±¾ÊÇÓÃJava¿ª·¢µÄ£¬ºÜÉÙÓÐÓÃcºÍc++£¬³ý·Ç×öµ×²ãÄÇЩ֮ÀàµÄ¡£¶øÎÒ£¬×ÔÓдóѧ¿ÎÌÃÉÏѧÁËÄÄһѧÆÚµÄjava£¬ºÍ×öÏÂСÁ·Ï°£¬»ù±¾ÉÏ£¬¾ÍûÓж¯¹ýjavaÁË£¬µ«´Ó´Ë¿ÌÆð£¬ÎÒÒ ......
1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl";
//orclΪÊý¾Ý¿âµÄSID
String user="test";
String password="test";
Connection conn= DriverManager.getConnection(url,user,password);
2¡¢DB2 ......
1£®±³¾°¡¢ÐÎÊÆ
Äܹ»½øÐÐWeb¿ª·¢µÄ±à³ÌÓïÑԺͼ¼ÊõºÜ¶à
(1) ¶¯Ì¬½âÊÍÓïÑÔ
PHP; Perl; Python (Zope, Plone); Ruby (Ruby on Rails);
(2) ±àÒëÓïÑÔ
Java; .net
Java Web¿ª·¢Ô¶·ÇÒ»Ö¦¶ÀÐ㣺
³ýÁËÊܵ½À´×Ô.net Õâ¸öÖØÁ¿¼¶¶ÔÊÖµÄ×î´óÌôÕ½Ö®Í⣬¸üÊܵ½Zope, Ruby on Rail µÈÐÂʽÇáÆï±øµÄ³å»÷£¨µ±È»£¬Ò²¼ÌÐøÊܵ½ÀÏʽÇá ......
´ó¼ÒºÃ£¬ÎÒÊÇ´«ÖDz¥¿ÍJava 11.30ÆÚ¾ÍÒµ°àµÄÒ»ÃûѧԱ¡£ÂíÉϾÍÒª½øÈë´«ÖDz¥¿Í¾ÍÒµ°àµÄѧϰÁË£¬×î½üÎÒÔÚ¸´Ï°Java»ù´¡¿Î³Ì£¬Ï£ÍûÄܹ»´òºÃ»ù´¡£¬»ý¼«Å¬Á¦µÄ½øÈë¾ÍÒµ°àµÄѧϰ¡£
½ñÌìºÜ¸ßÐËÌýÁËÕÅТÏéÀÏʦµÄ½²¿ÎÊÓƵ£¬¸Ð¾õÕÅТÏéÀÏʦµÄ½²¿Î·Ç³£Çå³þ¡¢Ï¸Ö£¬½²Ò»Ð©ÄÑÀí½âµÄ֪ʶµãʱ£¬ÎªÁËÈÃÎÒÃÇÄܹ»Àí½â£¬ÕÅТÏéÀÏʦ ......