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

java º¯Êý²ÎÊýµÄ´«µÝÎÊÌâ¡£

×î½üÔÚѧϰjavaµÄʱºò£¬¶ÔÓÚjavaº¯ÊýµÄ´«µÝÁ˽âÁËһϡ£javaµÄÊý¾ÝÀàÐÍ´óµÄ·ÖΪÁ½ÖÖ£¬Ò»ÖÖÊÇ»ù±¾Êý¾ÝÀàÐÍ£¬ÁíÒ»ÖÖÊÇ·Ç»ù±¾Êý¾ÝÀàÐÍ£¬£¨ÀàÊý¾ÝÀàÐÍ£©¡£ÔÚ²ÎÊý´«µÝʱºò£¬»ù±¾µÄÊý¾ÝÀàÐÍ´«µÝµÄÊǶÔʵ²ÎÊýµÄÒ»·Ý¿½±´£¬¶ø·Ç»ù±¾Êý¾ÝÀàÐÍÔòÊÇʵÀýµÄÒýÓõÄÒ»·Ý¿½±´¡£ÎÒµÄÀí½âÊÇÀàµÄʵÀý£¬¼´¶ÔÏó´æ·ÅµÄÄÚÈݾÍÊÇÒýÓã¬Êµ¼ÊÊǵØÖ·¡£
ÏÂÃæµÄÄÚÈÝÒýÓõØÖ·ÈçÏ£ºhttp://blog.sina.com.cn/s/blog_5198c7370100dut4.html
 javaº¯ÊýÖеĴ«ÖµºÍ´«ÒýÓÃÎÊÌâÒ»Ö±ÊǸö±È½Ï“аÃÅ”µÄÎÊÌ⣬Æäʵjavaº¯ÊýÖеIJÎÊý¶¼ÊÇ´«µÝÖµµÄ£¬Ëù²»Í¬µÄÊǶÔÓÚ»ù±¾Êý¾ÝÀàÐÍ´«µÝµÄÊDzÎÊýµÄÒ»·Ý¿½±´£¬¶ÔÓÚÀàÀàÐÍ´«µÝµÄÊǸÃÀà²ÎÊýµÄÒýÓõĿ½±´£¬µ±ÔÚº¯ÊýÌåÖÐÐ޸IJÎÊýֵʱ£¬ÎÞÂÛÊÇ»ù±¾ÀàÐ͵IJÎÊý»¹ÊÇÒýÓÃÀàÐ͵IJÎÊý£¬Ð޸ĵÄÖ»ÊǸòÎÊýµÄ¿½±´£¬²»Ó°Ï캯Êýʵ²ÎµÄÖµ£¬Èç¹ûÐ޸ĵÄÊÇÒýÓÃÀàÐ͵ijÉÔ±Öµ£¬Ôò¸Ãʵ²ÎÒýÓõijÉÔ±ÖµÊÇ¿ÉÒԸıäµÄ£¬Àý×ÓÈçÏ¡£
Ê×ÏÈÊǶ¨Òå¸Ä±ä²ÎÊýµÄ
       public static void changeInt(int i){//¸Ä±äintÐͱäÁ¿µÄº¯Êý
i=100;
}
public static void changeString(String s){//¸Ä±äStringÐͱäÁ¿µÄº¯Êý
s="changeString";
}
public static void changeModel(Model model){//¸Ä±äModelÐͱäÁ¿µÄº¯Êý
model=new Model();
model.i=1;
model.s="changeModel";
}
public static void changeModel2(Model model){//¸Ä±äModelÐͱäÁ¿µÄ³ÉÔ±µÄº¯Êý
model.i=1;
model.s="changeModel";
}
       ÀàModel
        class Model{
  public int i=0;
  public String s="no value";
        }
²âÊÔ³ÌÐò
      public static void main(String[] args) {
int i=0;
String s="hello";
Model model=new Model();
Model model2=new Model();
changeInt(i);
System.out.println("i="+i);
changeString(s);
System.out.println("s="+s);
changeModel(model);
System.out.println("model:"+model.s);
changeModel2(model2);
System.out.println("model2:"+model2.s);
}
   ²âÊÔ½á¹û£º
   i=0
   s=hello
   model:no value
   model2:changeModel
¿ÉÒÔ¿´³öiûÓиı䣬sҲûÓиı䣬modeҲûÓиı䣬model2µÄs¸Ä±äÁË¡£
×ܽ᣺javaÖеÄÐβÎÊÇ


Ïà¹ØÎĵµ£º

java±àÂë2

String str = "ÖÐ";
 
 
  String str1 = new String(str.getBytes("gbk"), "ISO8859-1");
  String str2 = new String(str1.getBytes("ISO8859-1"), "gbk");
  System.out.println(str2);  //Êä³ö"ÖÐ" ......

JVM(Java ÐéÄâ»ú)Éî¶ÈÆÊÎö

        ¿ÉÄÜÓкܶàѧϰJavaµÄÅóÓÑ»¹²»ÖªµÀJavaµÄÔËÐÐÔ­Àí¡¢JavaÐéÄâ»úÊÇÔõô¹¤×÷µÄ£¬±¾ÎĽ«ÎªÄãÏêϸ½²½â(JVM)Java ÐéÄâ»ú¡£
¡¡¡¡ÔÚJavaÖÐÒýÈëÁËÐéÄâ»úµÄ¸ÅÄ¼´ÔÚ»úÆ÷ºÍ±àÒë³ÌÐòÖ®¼ä¼ÓÈëÁËÒ»²ã³éÏóµÄÐéÄâµÄ»úÆ÷¡£Õą̂ÐéÄâµÄ»úÆ÷ÔÚÈκÎƽ̨É϶¼Ìṩ¸ø±àÒë³ÌÐòÒ»¸öµÄ¹²Í¬µÄ½Ó¿Ú¡£±àÒë³ ......

java ͸Ã÷ͼƬ

¹ØÓÚJavaÉú³É±³¾°Í¸Ã÷µÄpngͼƬ
×î½üÓõ½Java¶¯Ì¬Éú³É±³¾°Í¸Ã÷µÄͼƬ¹¦ÄÜ£¬´ÓgifºÍpngÖÐÑ¡ÔñÁËpng¸ñʽ£¬¸öÖÐÔµÓɾͲ»ËµÁË£¬ÓÚÊǶ¯ÊÖµ½ÍøÉÏËÑË÷ÓÐÓõĴúÂë¡£ÏÖ°ÑËÑË÷½á¹û×ܽáÈçÏ£º
1. Éú³ÉpngͼƬ
int width = 400;
int height = 300;
// ´´½¨BufferedImage¶ÔÏó
BufferedImage&nb ......

¹ØÓÚÒÔThinking in JavaΪ¿Î±¾µÄJava½ÌÓëѧµÄ·½·¨

    ÔÚÄ¿Ç°µÄ¹ØÓÚjava×ÔѧµÄÌÖÂÛÖУ¬×î¾­³£¿´µ½µÄ¾ÍÊÇ×êÑС¶Thinking in java¡·(TIJ)µÄ¾­Ñ飬µ«ÊÇ£¬¾¡¹ÜʹÓÃTIJ×÷Ϊ½Ìѧ²ÄÁϵĽÌѧÐÐΪҲºÜ¶à£¬ÎÒÈ´ÉÐδ·¢ÏÖÓдӽÌʦ¹ØÓÚÈçºÎ½«TIJÓÃÓÚ½ÌѧµÄÂÛÊö¡£Îª´Ë£¬ÎÒȨ×÷Å×שÒýÓñ¡£
 
    Ê×ÏÈ£¬ÎªÊ²Ã´ÒªÑ§Ï°java£¿°´ÕÕEckelµÄ»°Ëµ£¬ ......

½â¾öjava±à³ÌÂÒÂëÎÊÌâ

´¦ÀíÂÒÂëÎÊÌâ
1¡¢¹æ·¶Êý¾Ý¿âºÍÒ³ÃæËùÓбàÂëͳһΪһÖÖÀýÈçutf-8
2¡¢hibernateÁ¬½ÓÊý¾Ý¿âÉèÖÃÁ¬½Ó±àÂë
<session-factory>
   <property name="connection.url">
   jdbc:mysql://127.0.0.1:3306/leaveword?useUnicode=true&amp;characterEncoding=utf-8
  & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ