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

java´«ÖµÎÊÌâ.

Java´«µÝ²ÎÊýÓÐÁ½ÖÖ £ºÖµ´«µÝ£¬ÒýÓô«µÝ
Ò»°ãÒýÓÃÀàÐÍ ÊÇÒýÓô«µÝ£¬ÖµÀàÐÍÊÇÖµ´«µÝ
ÖµÀàÐÍÊÇԭʼÊý¾ÝÀàÐÍ °üÀ¨ int,byte,char short long,boolean,float,double
ÒýÓÃÀàÐ;ÍÊÇÒ»°ãµÄclassÀà µ±È»Ò²°üÀ¨Ô­Ê¼Êý¾ÝµÄ·â×°ÀàÐÍ ±ÈÈçintµÄ
·â×°ÀàÐÍΪInteger
Ò»°ãÇé¿öÏ£º
Öµ´«µÝ£º
Àý×Ó 1 public  void show1(int str)
    {
       Str=4;
    }
    public static void main(String[] args) {
int k=1;
System.out.println(id);        
 s.show1(str);
       System.out.println(id);
}
Êä³ö½á¹ûΪ    1
1
Öµ´«µÝ±íÏÖΪ ¶Ô¶¨ÒåÊý¾ÝµÄÒ»·Ý¿½±´ ²»Ó°ÏìԭʼÊý¾ÝµÄÖµ
 
ÒýÓô«µÝ
 
Àý×Ó 2 public  void show1(List list)
    {
       List.add(“dddddd”);
    }
    public static void main(String[] args) {
List list=new ArrayList()
System.out.println(list.size);        
 s.show1(list);
       System.out.println(list.size);
}
Êä³ö½á¹ûΪ    0
1
ÒýÓô«µÝ±íÏÖΪ ½«ÒýÓöÔÏóµÄÄÚ´æµØÖ·´«µÝ¸øÁË show1·½·¨
²Ù×÷ʱ show1·½·¨»á¸ù¾ÝµØÖ·È¥¸Ä±äÒýÓõÄÖµ£¬Êµ¼ÊÉϾÍÊÇÐÞ¸Ä
ÁËԭʼµÄÖµ
 
 
 
JavaÖÐStringÊǸöÌرðµÄÀà  final¹Ø¼ü×ÖÐÞÊÎ ²»Äܱ»¼Ì³Ð£¬
Ò»°ãÇé¿öÀ඼ÊôÓÚÒýÓÃÊý¾ÝÀàÐÍ
¿ÉÒÔ¿´Ò»ÏÂËûµÄ´«µÝЧ¹û
    Àý×Ó 3 public  void show1(String str)
    {
       str=new String("dddddddddddddd");
    }
    public static void main(String[] args) {
String str=new String ("liaomin");     System.out.println(str);
       s.show1(str);
       System.out.println(str);
}
 
Êä³ö½á¹ûΪ liaomin
           liaomin
 
Èç¹


Ïà¹ØÎĵµ£º

Java SE ¶à̬

/*¶à̬ʾÀý*/
package demo;
class AA {
 public void f(){
  System.out.println("f in AA");
 }
}
class BB extends AA{
 public void f(){
  System.out.println("f in BB");
 }
 
}
public class Test_Dt {
 public static void main(String[] args) ......

java³£ÓÃʵÓÃÀàѧϰ11.29

ÏÖÔÚ ËùÓÃJava°æ±¾,DateÀ๹Ôì·½·¨Date(0)µÄʱ¼ä²»ÊÇThu Jan 01 01:00:00 GMT 1970ÁË£¬¶øÊÇThu Jan 01 08:00:00 CST 1970¡££¨ 1970 Äê1 ÔÂ1 ÈÕ8ʱ0·Ö0Ãë ÐÇÆÚ4£©
     Ϊʲô Date b1=new Date(623289600000); ²»¿ÉÒÔ£¬ÏÂÃæµÄÈ´¿ÉÒÔÄØ£¿
long a=623289600000L;
   Date b1=new Date(a); Ò ......

javaÈÕÆÚת»»

/**
  * ´¦Àíʱ¼äÒì³£ Date to String
  * Èç¹ûת»»³öÏÖÒì³£»á¸øĬÈÏÖµ00:00
  * @param time
  * @param sdf
  * @return
  */
 public static  String handleDateParseException(Object time){
  String tempTime = "00:00";
  try{
   ......

JavaÖеÄmac¼ÆËã

          ±¨Îļø±ðÔÚÉí·ÝÈÏÖ¤ÖÐÕ¼ÖØҪλÖã¬ÊÇÈÏ֤ϵͳµÄÒ»¸öÖØÒª»·½Ú£¬ÔÚ½ðÈÚºÍÉÌҵϵͳÖй㷺ӦÓá£
          ±¨Îļø±ð³£Óñ¨Îļø±ðÂ루Message Authentication Code,¼´MAC£©×÷Ϊ¼ø±ðµÄ»ù´¡£¬
     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ