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

javaÒýÓÃ


class Tank{
 int level;
}
public class Assignment {
 public static void main(String[] args) {
  
  Tank t1 = new Tank();
  Tank t2 = new Tank();
  t1.level= 9;
  t2.level= 47;
  
  System.out.println("1:t1.level:"+t1.level+",t2.level:"+t2.level);
  t1 = t2;
  System.out.println("2:t1.level:"+t1.level+",t2.level:"+t2.level);
  t1.level= 27 ;
  System.out.println("3:t1.level:"+t1.level+",t2.level:"+t2.level);
 }
}
1:t1.level:9,t2.level:47
2:t1.level:47,t2.level:47
3:t1.level:27,t2.level:27
ÕâÖÖÌØÊâµÄÏÖÏóͨ³£×÷³Æ×÷"±ðÃûÏÖÏó",Èç¹ûÏë±ÜÃâ±ðÃûÎÊÌâÓ¦¸Ã
t1.level = t2.level
1:t1.level:9,t2.level:47
2:t1.level:47,t2.level:47
3:t1.level:27,t2.level:47
class Letter{
 char c;
}
public class PassObject {
 static void f(Letter y){
  y.c = 'z';
 }
 
 public static void main(String[] args) {
  Letter x = new Letter();
  x.c = 'a';
  System.out.println("1:x.c:"+x.c);
  f(x);
  System.out.println("2:x.c:"+x.c);
 }
}
1:x.c:a
2:x.c:z


Ïà¹ØÎĵµ£º

Java Random

java.util.RandomÀàÓÐÁ½ÖÖ·½Ê½¹¹½¨·½Ê½£º´øÖÖ×ӺͲ»´øÖÖ×Ó
1.²»´øÖÖ×Ó
package testjava01;
public class Random {
    public static void main(String[] args) {
        java.util.Random r = new java.util.Random();
        for(i ......

JavaÃæÊÔÌâ

Java»ù´¡·½Ãæ: 
1¡¢×÷ÓÃÓòpublic,private,protected,ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£ºÇø±ðÈçÏ£º
×÷ÓÃÓò           µ±Ç°Àà       Í¬Ò»package  ×ÓËïÀà       ÆäËûpackage
public& ......

JavaÖи÷ÀàCache»úÖÆʵÏÖ½â¾ö·½°¸

ÎÄÕÂÀ´Ô´£ºhttp://java.chinaitlab.com/base/808164.html
ÔÚJavaÖУ¬²»Í¬µÄÀ඼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖƵÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
¡¡¡¡OSCache
¡¡¡¡OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ» ......

Java³£ÓÃÊõÓï½âÊÍ JSP


Ãû´Ê
½âÊÍ
aaa
ÈÏÖ¤(authentication)£ºÑéÖ¤Óû§µÄÉí·ÝÓë¿ÉʹÓõÄÍøÂç·þÎñ£»ÊÚȨ(authorization)£ºÒÀ¾ÝÈÏÖ¤½á¹û¿ª·ÅÍøÂç·þÎñ¸øÓû§£»¼ÆÕÊ(accounting)£º¼Ç ¼Óû§¶Ô¸÷ÖÖÍøÂç·þÎñµÄÓÃÁ¿£¬²¢Ìṩ¸ø¼Æ·Ñϵͳ¡£
¼ò³Æaaaϵͳ¡£
awt
abstract window toolkit(³éÏó´°¿Ú¹¤¾ß°ü)£¬µÚÒ»´úµÄ java gui¹¤¾ß°ü£¬ÏÖÔÚ»ù±¾ÒѾ­²» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ