java¿ò¼ÜѧϰÌå»á
×î½üÔÚѧϰjavaµÄ¿ò¼Ü£¬¼ÓÉîÁ˶ÔjavaһЩÉè¼ÆģʽµÄÀí½â£¬ÀýÈçÄ£°å·½·¨Ä£Ê½¡¢²ßÂÔģʽ¡¢´úÀíģʽºÍ¶¯Ì¬´úÀíģʽ£¬·¢ÏÖѧϰÀí½âservletºÍjspºóºÜÈÝÒ×¾Íѧ»áÁËstruts£¬Ñ§Ï°jdbcºó±È½ÏÈÝÒ×Àí½âhibernate£¬±¾ÈË»¹Ã»¿ªÊ¼Ñ§Ï°spring¡£
¶Ôstruts¿ò¼ÜµÄÀí½â£ºÖ÷ÒªÊǶÔÖÐÐÄ¿ØÖÆÆ÷Õâ¸öÀàµÄÀí½â£¨ÊÇÔõôÔË×÷µÄ£©£¬È»ºóÒªÀí½âʲôÊÇÃæÏò½Ó¿Ú±à³Ì£¬µ±È»ÔÚÕâ֮ǰÐèÒªÀí½âservlet¡¢jsp¡¢servletÈÝÆ÷£¨web·þÎñÆ÷£©ºÍJavaBeanµÄ֪ʶµã£¬ÕâÑùºÜ¿ì¾Í¿ÉÒÔѧ»áÁËstruts£¨¾«Í¨»¹ÊÇÒªºÜ³¤Ê±¼äµÄ£©¡£
¶Ôhibernate¿ò¼ÜµÄÀí½â£ºÕâÐèÒªÄãÓÐÊý¾Ý¿âµÄ֪ʶ£¬ÌرðÊÇҪѧ»áSQLÓï¾ä£¨ÎÞ·ÇÊÇÔö¡¢É¾¡¢¸Ä¡¢²é£©£¬ÒªÊìϤjdbc£¬Àí½âÊǶÔÏóºÍ±íµÄת»»¹ý³Ì£¨±íµÄÁÐÊôÐÔÓëJavaBeanµÄÊôÐÔ¶ÔÓ¦£©¡£
ÓÐʲôºÃµÄ½¨Ò飬Çë¸ßÊÖÌá³öÒâ¼û£¡£¡£¡
Ïà¹ØÎĵµ£º
תÐͱ»ÓÃÀ´½«Ò»¸öÊýÖµ´ÓÒ»ÖÖÀàÐÍת»»µ½ÁíÒ»ÖÖÀàÐÍ¡£ÏÂÃæµÄ³ÌÐòÁ¬ÐøʹÓÃÁËÈý¸öתÐÍ¡£ÄÇôËüµ½µ×»á´òÓ¡³öʲôÄØ£¿
public class Multicast{
public static void main (String[] args){
System.out.println((int)(char)(byte) -1);
}
}
ÎÞÂÛÄãÔõÑù·ÖÎöÕâ¸ö³ÌÐò£¬¶¼»á¸Ðµ½ºÜÃÔ»ó¡£ËüÒÔintÊýÖµ-1¿ªÊ¼£¬È»ºó´ÓintתÐÍÎ ......
ÏÂÃæµÄ³ÌÐòʹÓÃÁ˸´ºÏµÄÒì»ò¸³Öµ²Ù×÷·û£¬ËüËùչʾµÄ¼¼ÊõÊÇÒ»ÖÖ±à³ÌÏ°Ëס£ÄÇôËü»á´òÓ¡³öʲôÄØ£¿
public class CleverSwap{
public static void main(String[] args){
int x = 1984; // (0x7c0)
int y = 2001; // (0x7d1)
x^= y^= x^= y;
System.out.println("x= " + x + "; y= " + y);
}
}
¾ÍÏñÆäÃû³Æ ......
1¡¢°ÑDB2°²×°Ä¿Â¼ÏµÄdb2java.zipµ¼Èëµ½ÏîÄ¿µÄÍⲿÀ࣬ÈçÎÒÊÇ°ÑD:\Program Files\IBM\SQLLIB\javaϵÄdb2java.zipµ¼ÈëµÄ¡£
2¡¢ÔÚ³ÌÐòÖн¨Á¢Á¬½Ó£º
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
String url="jdbc:db2:mydb"; //²»±ØÖ¸¶¨Ö÷»úÃûºÍ¶Ë¿ÚºÅ£¬Ö¸¶¨ÁË·´¶ø»á³ö´í & ......
Ò»¸öÈí¼þÉè¼ÆµÄºÃ»µ£¬ÎÒÏëºÜ´ó³Ì¶ÈÉÏÈ¡¾öÓÚËüµÄÕûÌå¼Ü¹¹£¬¶øÕâ¸öÕûÌå¼Ü¹¹Æäʵ¾ÍÊÇÄã¶ÔÕû¸öºê¹ÛÉÌÒµÒµÎñµÄ³éÏó¿ò¼Ü£¬µ±´ú±íÒµÎñÂß¼µÄ¸ß²ã³éÏó²ã½á¹¹ ºÏÀíʱ£¬Äãµ×²ãµÄ¾ßÌåʵÏÖÐèÒª¿¼Âǵľͽö½öÊÇһЩËã·¨ºÍһЩ¾ßÌåµÄÒµÎñʵÏÖÁË¡£µ±ÄãÐèÒªÔÙ¿ª·¢ÁíÒ»¸öÏà½üµÄÏîĿʱ£¬ÄãÒÔÇ°µÄ³éÏó²ã˵²»¶¨»¹¿ÉÒÔÔÙ´ÎÀûÓà ÄØ£¬Ãæ¶Ô¶ÔÏóµÄÉè¼Æ ......