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

Java ¼Ì³ÐСÀý

¿´¿´ÏÂÃæ³ÌÐò½«Êä³öʲô½á¹û£º
/**
* ShowExtending
* ÑÝʾ¼Ì³ÐʱµÄÏÖÏó
*/
class SupCls {
static String s1 = "¸¸ÀàÀà±äÁ¿s1";
String s2 = "¸¸ÀàʵÀý±äÁ¿s2";
SupCls(){
System.out.println("¸¸À๹ÔìÆ÷±»·ÃÎÊ");
}
public static void f1(){
System.out.println("¸¸Àà static:f1() ±»·ÃÎÊ");
}
public void f2(){
System.out.println("¸¸Àà instance:f2() ±»·ÃÎÊ");
}
}
public class ShowExtending extends SupCls {
static String s1 = "×ÓÀàÀà±äÁ¿s1";
String s2 = "×ÓÀàʵÀý±äÁ¿s2";
ShowExtending(){
// ϵͳ»áµ÷Óø¸ÀàµÄĬÈÏ£¨Ã»ÓвÎÊý£©¹¹ÔìÆ÷
// Èç¹û¸¸ÀàĬÈϹ¹ÔìÆ÷±»¸²¸ÇÒÔÖÂûÓÐÎ޲ι¹ÔìÆ÷£¬Ôò±àÒë³ö´í
// ´ËʱӦ¸Ãµ÷Óà super( /*²ÎÊý*/ ); ÏÔʾµ÷Óø¸À๹ÔìÆ÷
System.out.println("×ÓÀ๹ÔìÆ÷±»·ÃÎÊ");
}
public static void f1(){
System.out.println("×ÓÀà static:f1() ±»·ÃÎÊ");
}
public void f2(){
System.out.println("×ÓÀà instance:f2() ±»·ÃÎÊ");
}
public static void main(String[] args) {
// ´´½¨×ÓÀà¶ÔÏóʱ»á´´½¨¸¸Àà¶ÔÏ󣬻áµ÷Óø¸À๹ÔìÆ÷
SupCls a = new SupCls();
ShowExtending b = new ShowExtending();
SupCls c = b;
// ²âÊÔͨ¹ý²»Í¬·½Ê½·ÃÎʸ¸ÀàºÍ×ÓÀàµÄÊý¾Ý³ÉÔ±
System.out.println("a.s1£º" + a.s1);
System.out.println("a.s2£º" + a.s2);
System.out.println("b.s1£º" + b.s1);
System.out.println("b.s2£º" + b.s2);
System.out.println("c.s1£º" + c.s1);
System.out.println("c.s2£º" + c.s2);
// ²âÊÔͨ¹ý²»Í¬·½Ê½·ÃÎʸ¸ÀàºÍ×ÓÀàµÄ·½·¨³ÉÔ±
System.out.print("a.f1():");
a.f1();
System.out.print("a.f2():");
a.f2();
System.out.print("b.f1():");
b.f1();
System.out.print("b.f2():");
b.f2();


Ïà¹ØÎĵµ£º

Java Scanner NoSuchElementException

½ñÌìͬѧÎÊÎÒÒ»¸öJavaÎÊÌ⣬´úÂë½á¹¹ÈçÏ£º
Scanner scan = new Scanner(System.in);
scan.next();
scan.close();
scan = new Scanner(System.in);
scan.next(); 
µ±³ÌÐòÔËÐе½µÚÎåÐÐÊÇ»áÅ׳öjava.util.NoSuchElementException
          at&nb ......

JAVA³ÌÐòÔ±±ØÈ¥µÄÍøÕ¾

JAVA³ÌÐòÔ±±ØÈ¥µÄÍøÕ¾
2008-08-19 16:35
Ó¢ÎÄÍøÕ¾
http://www.javaalmanac.com - Java¿ª·¢ÕßÄê¼øÒ»ÊéµÄÔÚÏß°æ±¾£¬ÏëÒª¿ìËٲ鵽ijÖÖJava¼¼ÇɵÄÓ÷¨¼°Ê¾ÀýµÄ´úÂëÕâÊÇÒ»¸ö²»´íµÄÈ¥´¦.
http://www.onjava.com - O'ReillyµÄJavaÍøÕ¾. ÿÖܶ¼ÓÐÐÂÎÄÕÂ.
http://java.sun.com - ¹Ù·½µÄJava¿ª·¢ÕßÍøÕ¾ - ÿÖܶ¼ÓÐÐÂÎÄÕ·¢±í. ......

1·ÖÖÓJava³ÌÐò¿ìËÙת»»Îªwindows·þÎñÔËÐÐ

ÎÄÕÂÀ´Ô´£ºhttp://www.blogjava.net/midea0978/archive/2008/01/17/175953.html
1¡¢Ê×Ïȵ½ÇëÏÂÔØ×îа汾µÄJava Service Wrapper£¬µãÎÒÏÂÔØ¡£
2¡¢×¼±¸ÈçÏÂÎļþ£¬¸´ÖƵ½testĿ¼£¬ÕâЩÎļþ¿ÉÒÔ´ÓÏÂÔØ°üÖÐÕÒµ½£º
wrapper.dll
wrapper.exe
wrapper.jar
3¡¢±àдwrapper.conf£¬Ò²·ÅÔÚͬһ¼¶Ä¿Â¼ÏÂÃæ£¬ÄÚÈÝÈçÏÂ
# Jav ......

java퉀
ÏÈÉùÃ÷һϣ¬ÌâĿԭ³öÓÚ£ºhttp://gocom.primeton.com/modules/newbb/item60284_60284.htm
JVMÊÇJava³ÌÐòµÄÔËÐл·¾³£¬Òò´Ë¶ÔÓÚJVMµÄÕÆÎÕÓÐÖúÓÚÀí½âJava³ÌÐòµÄÖ´ÐÐÒÔ¼°±àд£¬ÓÈÆäÊÇÔËÐÐʱÅöµ½µÄһЩ¹îÒìÎÊÌ⣬ÄÇôÔõôÑùÄÜ¿¼²ì×Ô¼º¶ÔÓÚJVM¹Ø¼ü֪ʶµãµÄÕÆÎÕÇé¿ö£¬°ïÖúѧϰJVM»úÖÆÄØ£¬ÔÚÕâÆªblogÖÐÀ´Ì½ÌÖÏ¡£
¶ÔÓÚJava³ÌÐò¶øÑ ......

java³£ÓõÄListener·ÖÀà

ListenerÊÇServletµÄ¼àÌýÆ÷£¬Ëü¿ÉÒÔ¼àÌý¿Í»§¶ËµÄÇëÇó¡¢·þÎñ¶ËµÄ²Ù×÷µÈ¡££¨Í¨¹ý¼àÌýÆ÷£¬¿ÉÒÔ×Ô¶¯¼¤·¢Ò»Ð©²Ù×÷£¬±ÈÈç¼àÌýÔÚÏßµÄÓû§µÄÊýÁ¿¡£µ±Ôö¼ÓÒ»¸öHttpSessionʱ£¬¾Í¼¤·¢
sessionCreated(HttpSessionEvent se)·½·¨£¬ÕâÑù¾Í¿ÉÒÔ¸øÔÚÏßÈËÊý¼Ó1¡££©
Servlet ¼àÌýÆ÷ÓÃÓÚ¼àÌýÒ»Ð©ÖØÒªÊ¼þµÄ·¢Éú£¬¼àÌýÆ÷¶ÔÏóÔÚÊÂÇé·¢Éúǰ¡¢·¢ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ