ѧϰJava±Ø¿´ JAVA´úÂë±àдµÄ30Ìõ½¨Òé
ѧϰJava±Ø¿´ - JAVA´úÂë±àдµÄ30Ìõ½¨Òé
(1) ÀàÃûÊ××ÖĸӦ¸Ã´óд¡£×ֶΡ¢·½·¨ÒÔ¼°¶ÔÏ󣨾ä±ú£©µÄÊ××ÖĸӦСд¡£¶ÔÓÚËùÓбêʶ·û£¬ÆäÖаüº¬µÄËùÓе¥´Ê¶¼Ó¦½ô¿¿ÔÚÒ»Æ𣬶øÇÒ´óдÖм䵥´ÊµÄÊ××Öĸ¡£ÀýÈ磺
ThisIsAClassName
thisIsMethodOrFieldName
ÈôÔÚ¶¨ÒåÖгöÏÖÁ˳£Êý³õʼ»¯×Ö·û£¬Ôò´óдstatic final»ù±¾ÀàÐͱêʶ·ûÖеÄËùÓÐ×Öĸ¡£ÕâÑù±ã¿É±êÖ¾³öËüÃÇÊôÓÚ±àÒëÆڵij£Êý¡£
Java°ü£¨Package£©ÊôÓÚÒ»ÖÖÌØÊâÇé¿ö£ºËüÃÇÈ«¶¼ÊÇСд×Öĸ£¬¼´±ãÖмäµÄµ¥´ÊÒàÊÇÈç´Ë¡£¶ÔÓÚÓòÃûÀ©Õ¹Ãû³Æ£¬Èçcom£¬org£¬net»òÕßeduµÈ£¬È«²¿¶¼Ó¦Ð¡Ð´£¨ÕâÒ²ÊÇJava 1.1ºÍJava 1.2µÄÇø±ðÖ®Ò»£©¡£
(2) ΪÁ˳£¹æÓÃ;¶ø´´½¨Ò»¸öÀàʱ£¬Çë²ÉÈ¡"¾µäÐÎʽ"£¬²¢°üº¬¶ÔÏÂÊöÔªËصĶ¨Ò壺
equals()
hashCode()
toString()
clone()£¨implement Cloneable£©
implement Serializable
(3) ¶ÔÓÚ×Ô¼º´´½¨µÄÿһ¸öÀ࣬¶¼¿¼ÂÇÖÃÈëÒ»¸ömain()£¬ÆäÖаüº¬ÁËÓÃÓÚ²âÊÔÄǸöÀàµÄ´úÂ롣ΪʹÓÃÒ»¸öÏîÄ¿ÖеÄÀ࣬ÎÒÃÇû±ØҪɾ³ý²âÊÔ´úÂë¡£Èô½øÐÐÁËÈκÎÐÎʽµÄ¸Ä¶¯£¬¿É·½±ãµØ·µ»Ø²âÊÔ¡£ÕâЩ´úÂëÒ²¿É×÷ΪÈçºÎʹÓÃÀàµÄÒ»¸öʾÀýʹÓá£
(4) Ó¦½«·½·¨Éè¼Æ³É¼òÒªµÄ¡¢¹¦ÄÜÐÔµ¥Ôª£¬ÓÃËüÃèÊöºÍʵÏÖÒ»¸ö²»Á¬ÐøµÄÀà½Ó¿Ú²¿·Ö¡£ÀíÏëÇé¿öÏ£¬·½·¨Ó¦¼òÃ÷¶óÒª¡£Èô³¤¶ÈºÜ´ó£¬¿É¿¼ÂÇͨ¹ýijÖÖ·½Ê½½«Æä·Ö¸î³É½Ï¶ÌµÄ¼¸¸ö·½·¨¡£ÕâÑù×öÒ²±ãÓÚÀàÄÚ´úÂëµÄÖظ´Ê¹Óã¨ÓÐЩʱºò£¬·½·¨±ØÐë·Ç³£´ó£¬µ«ËüÃÇÈÔÓ¦Ö»×öͬÑùµÄÒ»¼þÊÂÇ飩¡£
(5) Éè¼ÆÒ»¸öÀàʱ£¬ÇëÉèÉí´¦µØΪ¿Í»§³ÌÐòÔ±¿¼ÂÇһϣ¨ÀàµÄʹÓ÷½·¨Ó¦¸ÃÊǷdz£Ã÷È·µÄ£©¡£È»ºó£¬ÔÙÉèÉí´¦µØΪ¹ÜÀí´úÂëµÄÈË¿¼ÂÇһϣ¨Ô¤¼ÆÓпÉÄܽøÐÐÄÄЩÐÎʽµÄÐ޸ģ¬ÏëÏëÓÃʲô·½·¨¿É°ÑËüÃDZäµÃ¸ü¼òµ¥£©¡£
(6) ʹÀྡ¿ÉÄܶÌС¾«º·£¬¶øÇÒÖ»½â¾öÒ»¸öÌض¨µÄÎÊÌâ¡£ÏÂÃæÊǶÔÀàÉè¼ÆµÄһЩ½¨Ò飺
¡öÒ»¸ö¸´ÔӵĿª¹ØÓï¾ä£º¿¼ÂDzÉÓÃ"¶àÐÎ"»úÖÆ
¡öÊýÁ¿ÖÚ¶àµÄ·½·¨Éæ¼°µ½ÀàÐͲî±ð¼«´óµÄ²Ù×÷£º¿¼ÂÇÓü¸¸öÀàÀ´·Ö±ðʵÏÖ
¡öÐí¶à³ÉÔ±±äÁ¿ÔÚÌØÕ÷ÉÏÓкܴóµÄ²î±ð£º¿¼ÂÇʹÓü¸¸öÀà
(7) ÈÃÒ»Çж«Î÷¶¼¾¡¿ÉÄܵØ"˽ÓÐ"--private¡£¿Éʹ¿âµÄijһ²¿·Ö"¹«¹²»¯"£¨Ò»¸ö·½·¨¡¢Àà»òÕßÒ»¸ö×ֶεȵȣ©£¬¾ÍÓÀÔ¶²»ÄÜ°ÑËüÄóö¡£ÈôÇ¿ÐÐÄóö£¬¾Í¿ÉÄÜÆÆ»µÆäËûÈËÏÖÓеĴúÂ룬ʹËûÃDz»µÃ²»ÖØбàдºÍÉè¼Æ¡£ÈôÖ»¹«²¼×Ô¼º±ØÐ빫²¼µÄ£¬¾Í¿É·ÅÐĴ󵨵ظı
Ïà¹ØÎĵµ£º
ת×ÔInfoq
http://www.infoq.com/cn/news/2007/09/java_web_architecture_turnning
һλIDÊÇjackson1225µÄÍøÓÑÔÚJavaEyeѯÎÊÁËÒ»¸ö´óÐÍWebϵͳµÄ¼Ü¹¹ºÍ²¿ÊðÑ¡ÐÍÎÊÌ⣬ϣÍûÄÜÌá¸ßÏÖÓеĻùÓÚJavaµÄWebÓ¦ÓõķþÎñÄÜÁ¦¡£ÓÉÓڼܹ¹Ä£Ê½ºÍ²¿Êðµ÷ÓÅÒ»Ö±ÊÇJavaÉçÇøµÄÈÈÃÅ»°Ì⣬Õâ¸öÎÊÌâÒý·¢Á˺ܶàÈÈÐÄÍøÓѵÄÌÖÂÛ£¬ÆäÖÐһЩÒâ¼û¶ÔÆä ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
Ò»¡¢java·ÃÎÊÖÐÎÄOracleÊý¾Ý¿âÉÏÁ¬½ÓµÄUS7ASCIIÊý¾Ý¿â
1¡¢¶Á·½·¨
public String convertLink_DB(String s) {
if(s != null){
try{
byte[] b = s.getBytes();
for(int i=0; i<b.length; i++){
b[i] ......
ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import
javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwing,javax.swing¼´JAVAÖеÄÒ»¸ö°ü¡£
androidÌá¹©Ò ......
java ´úÂë
package util;
import java.io.UnsupportedEncodingException;
import dao.socket.OperType;
public class Encrpt {
private String key;
public Encrpt() {
this("sitow");
}
public Encrpt(String key) {
this.key = key;
}
private ......