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

´«ÖDz¥¿ÍjavaÅàѵ Java±à³Ì»ù´¡


1.JavaµÄ´úÂëÒ»°ã·ÖΪÁ½´óÀࣺһÖÖÊǽṹ¶¨ÒåÓï¾ä£»Ò»ÖÖÊǹ¦ÄÜÓï¾ä£¨¹¦ÄÜÓï¾äÒªÓ÷ֺŽá⣩¡£
2.ÓÃ/*    ÄÚÈÝ */×¢ÊÍ£¬ÄÚÈÝÀïÃæÊDz»ÄÜ´æÔÚ/*  */µÄ£»µ«ÊÇ¿ÉÒÔ´æÔÚ//£»ÒòΪÕâÑù¾Í²»»á·¢Éúϵͳ²»ÖªµÀÄĸö*/²ÅÊÇÕæµÄ½áÊø·û¡£
3.±äÁ¿Ê¹ÓÃÇ°±ØÐë³õʼ»¯£¬Ê¹Óõ¥ÒýºÅµÄ×÷ÓþÍÊÇ°ÑÀïÃæµÄ×Ö·ûת»»³É¶ÔÓ¦µÄunicode±àÂë²¢´«Èë³ÌÐòÖй©³ÌÐòʹÓã¬ÒòΪ¼ÆËã»úÔÚÖ´ÐÐʱ¶¼ÊÇÔÚÓÃÊý×ÖÀ´½øÐеģ¬ËùÒÔ±ØÐë°ÑÈκζ«Î÷ÏÈת»¯³É¼ÆËã»úÄÜÃ÷°×µÄ¶«Î÷£¬Ëü²ÅÄÜÈ¥ÔËÐÐËü¡££»
4.¸´ºÏÓï¾äÖж¨ÒåµÄ±äÁ¿Ö»Ôڸ÷ûºÏÓï¾äÖÐÓÐЧÈ磺{  
           int x=5;
          }
        System.out.print(x);
ÕâÑù¾Í³öÏÖÁË´íÎóÁË£¬ÒòΪÁ½¸ö´ó¿æºÅ¾ÍÐγÉÁËÒ»¸ö¸´ºÏÓï¾ä¡£
5.ÔÚ·þÎñÆ÷ϵͳÖÐÈç¹ûÓÃÃüÁîÐд°¿ÚÖ´ÐÐJava³ÌÐò£¬¹ý³ÌÖв»ÒªÑ¡¶¨£¬·ñÔò³ÌÐò»áͣס¡£
6.javaÖв»Ö§³ÖÔÚ¸´ºÏÓï¾äÖÐÖظ´¶¨ÒåÓï¾äÍâÒѾ­¶¨Òå¹ýµÄ±äÁ¿¡£
7.ÓÉÓÚÎÒÒÔǰѧ¹ýCÓïÑÔ£¬ËùÒÔ¶ÔÓÚÊý¾ÝÀàÐÍÓ뺯Êý¶¼±È½ÏÁ˽⣬ËùÒÔÌýÆðÀ´¾ÍÏñÔÚ¸´Ï°Ò»Ñù£¬ÖÁÓÚÀàÐÍת»¯£¬ÎÒÊÇÕâÑùÀí½âµÄ£º
¾ÍÏñÊǼÒÀïµÄÐֵܽãÃÃÒ»Ñù£º
double    ´ó¸ç£»
float     ¶þ¸ç£»
long     Èý¸ç£»
int         ËĽ㣻
char      ÎåµÜ£»
short    ÁùÃã»
byte   ÆßµÜ;
µÜµÜÖ»ÄÜÌý¸ç¸çµÄ»°£¬Ò²¾ÍÊÇÒþÐÎÀàÐÍת»»£¬¾ÍÊǸç¸ç½ÐµÜµÜ×öÊÂÇ飻
ÄÇôµÜµÜÒª½Ð¸ç¸ç×öÊÂÇéÒªÔõô°ì£¬Ö»ÄܽбȽÏÌÛËûµÄ°Ö°Ö½Ð¸ç¸ç×öÊÂÇ飬¾ÍÊÇÏÔÐÎÀàÐÍת»»£¬¶øÕâ¸ö¹ý³Ì¾ÍÊǵܵÜ=£¨°Ö°Ö½Ð¸ç¸ç×öÊÂÇ飩¸ç¸ç£»
ת»¯³ÉÓï¾ä¾ÍÊÇ
long gege;
int didi=(int)gege;
ÎÒµÄÀí½âÊÇÕâÑù£¬¿ÉÄÜÓЩ¶´£¬µ«ÊÇÎÒ¾õµÃͦºÏÀíµÄ¡£ËùνµÄ°Ö°ÖÒ²¾ÍÊÇϵͳ¡£ÖÁÓÚÖмäµÄÊý¾ÝµÄÒç³öÓ붪ʧ£¬ÒªÈ¥ÕæÕýѧϰ¸÷ÀàÐ͵ÄÈ¡Öµ·¶Î§¡£
8.º¯ÊýûʲôÏë·¨ £¬»ù±¾ÉϸúÊé±¾ÉÏ˵µÄÒ»Ñù£¬ÒªÕæÕýÈ¥Àí½âËû£¬ÕÆÎÕËü£¬Ö»ÓÐÒ»¸ö°ì·¨£¬¶àÓÃËü£¬ÓöàÁË×ÔÈ»¾ÍÃ÷°×ÁËËûµÄÒâ˼ÁË¡£
9.if-else´Ó¾ä£¬ifÈç¹ûûÓдó¿æºÅ£¬ºóÃæÖ»ÄÜ´øÒ»¸öÓï¾ä£¬elseÒ²ÊÇÒ»Ñù¡£Èç¹ûifºóÃæ´øÁËÁ½¾ä£¬Ôòelse»áÕÒ²»µ½ifÆ¥Åä¾Í»á±¨´í¡£


Ïà¹ØÎĵµ£º

javaÉú³Éuuid

UUID(Universally Unique Identifier)È«¾ÖΨһ±êʶ·û,ÊÇÖ¸ÔÚһ̨»úÆ÷ÉÏÉú³ÉµÄÊý×Ö£¬Ëü±£Ö¤¶ÔÔÚͬһʱ¿ÕÖеÄËùÓлúÆ÷¶¼ÊÇΨһµÄ¡£°´ÕÕ¿ª·ÅÈí¼þ»ù½ð»á(OSF)Öƶ¨µÄ±ê×¼¼ÆË㣬Óõ½ÁËÒÔÌ«Íø¿¨µØÖ·¡¢ÄÉÃ뼶ʱ¼ä¡¢Ð¾Æ¬IDÂëºÍÐí¶à¿ÉÄܵÄÊý×Ö¡£ÓÉÒÔϼ¸²¿·ÖµÄ×éºÏ£ºµ±Ç°ÈÕÆÚºÍʱ¼ä(UUIDµÄµÚÒ»¸ö²¿·ÖÓëʱ¼äÓйأ¬Èç¹ûÄãÔÚÉú ......

java»·¾³±äÁ¿ÅäÖÃ

windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£»
2.°²×°Íê³Éºó£¬ÓÒ»÷“ÎҵĵçÄÔ”£¬µã»÷“ÊôÐÔ”£»
      3.Ñ¡Ôñ“¸ß¼¶”Ñ¡Ï£¬µã»÷“»·¾³±äÁ¿”£»
  &nb ......

´«ÖDz¥¿ÍjavaÅàѵ2010Äê4ÔÂ24ÈÕhibernateѧϰ


×òÌìÖ»ÊÇ×ܽáÁËÓ³ÉäµÄ¶à¶ÔÒ»µÄ¹Øϵ£¬ÒÔ¼°ÆäÖÐÒ»µã֪ʶҪµã¡£½ñÌìhibernateµÄ¿Î³Ì¾Í½áÊøÁË£¬½ñÌìµÄ¿Î£¬ÌýÊÇÌý¶®ÁË£¬µ«ÊÇ´ó¼Ò¶¼ÖªÊ¶£¬Ð´³ÌÐò²»ÊÇÖ»ÊÇÄÜÌý¶®¾ÍÐÐÁË£¬¸ü¶àµÄÊÇÐèÒªÔÚʵսÖÐÎüÈ¡¾­Ñ飬ÓкöàºÃ¶àµÄÎÊÌâ²»ÊÇÀÏʦÔÚ¿ÎÌÃÉÏÄÜ´«ÊÚµÃÍêµÄ£¬¸ü¶àµÄÊÇҪȥʵս£¬Ò»ÐÐÒ»ÐеĴúÂ붼Ҫ×Ô¼ºÈ¥Ç㬴íÎóÓöµ½ÁË£¬Òª×Ô¼ºÒ»ÐÄÒ»Ò ......

Java jdbc Oracle error: ORA 12505

¸ü¸Äoracle Listener ÅäÖãºD:\Oracle\moon\product\11.1.0\db_1\NETWORK\ADMIN  Ŀ¼֮Ï£ºListener.oraÎļþ½øÐÐÅäÖãº
# listener.ora Network Configuration File: d:\Oracle\moon\product\11.1.0\db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SI ......

JavaÖз½·¨ÔÚÄÚ´æÖеıíʾ


½«Ä³ class ²úÉú³öÒ»¸ö instance Ö®ºó£¬´Ë class ËùÓÐµÄ instance field ¶¼»áÐÂÔöÒ»·Ý£¬ÄÇôËùÓÐµÄ instance method ÊÇ·ñÒ²»áÐÂÔöÒ»·Ý£¿´ð°¸ÊDz»»á£¬ÎÒÃÇÓÃfield±íʾ×ֶΣ¬ÓÃmethod±íʾ·½·¨£¬ÄÇô¼ÓÉÏstaticÇø·Öºó¾Í ÓÐËÄÖÖ£º
class field£ºÓÐÓÃstaticÐÞÊεÄfield
class method£ºÓÐÓÃstaticÐÞÊεÄmethod
instance fi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ