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

JavaÖеÄpublic¡¢ protected¡¢ default¡¢ private

ÔÚJavaÖУ¬¶¨Ò庯Êý»òÕß±äÁ¿µÄʱºò£¬¶Ôº¯Êý¡¢±äÁ¿¶¼ÓÐÒ»¸ö·ÃÎÊȨÏÞÎÊÌâ¡£
¶ÔÓÚº¯ÊýÀ´Ëµ£¬±ÈÈ磺
public class test {
  public static void main(String[] args) {
  // TODO Auto-generated method stub
 }
 public void apublic() {
  //public º¯Êý
 }
 private void aprivate() {
  //private º¯Êý
 }
 void adefault() {
  //default º¯Êý
 }
 protected void aprotected() {
  //protected º¯Êý
 }
}
ÔÚµ÷ÓÃÕâЩº¯ÊýµÄʱºò£¬Ö»ÓÐ public º¯Êý£¬¿ÉÒÔ±»Óë class test ²»Í¬°üµÄÀà½øÐе÷Ó᣶ø default ºÍ protectedÔòÖ»ÄÜÔÚͬ°üÄÚµÄÀàÖ®¼äµ÷Óá£privateµÄ·ÃÎÊȨÏÞ¸üС£ºÖ»ÄÜÔÚÀàµÄÄÚ²¿½øÐзÃÎÊ¡£
°´Àí˵£¬default Óë protectedµÄ·ÃÎÊȨÏÞ£¬²»ÄÜÊÇÒ»ÑùµÄ£¬µ«ÎÒÏÖÔÚûÓиÐÊܵ½Á½ÕߵIJ»Í¬£¬ÎÒÓõÄʱºò£¬ÈÏΪÁ½ÕßµÄȨÏÞÊÇÒ»ÑùµÄ¡£
¶ÔÓÚ±äÁ¿À´Ëµ£¬Ó뺯ÊýÖеÄËĸöȨÏÞÀàËÆ¡£
ÓдíÎó»¹Íû¶à¶àÖ¸½Ì¡£


Ïà¹ØÎĵµ£º

Ò»´ÎÐÔÀíÇåjava ÖÐµÄ Àà¡¢³éÏóÀà¡¢½Ó¿Ú¡¢¼Ì³Ð¡¢¶ÔÏó

ÀàÊǹ㷺µÄ¸ÅÄ±íʾһ¸öÓй²Í¬ÐÔÖʵÄȺÌå¡£È磺ÈËÀà¡£
´úÂ룺
       // ÉùÃ÷Ò»¸öÀà“Human”
            class Human{
            priv ......

JavaÃæÊÔÌâÒ»(»ù´¡)

1. ÈçºÎµÃµ½JavaÓ¦ÓóÌÐòµÄ¿ÉÓÃÄڴ棿
´ð£ºÈçÏ´úÂëʵÏÖÈ¡µÃ×ܵÄÄÚ´æ´óСºÍ¿ÉÓÃÄÚ´æ´óС£¬²¢´òÓ¡µ½¿ØÖÆ̨ÉÏ
public class MemoryExp {
public static void main(String[] args) {
System.out.println("Total Memory"+Runtime.getRuntime().totalMemory());
System.out.println("Free Memory ......

Java½Ó¿ÚºÍJava³éÏóÀà

ÔÚûÓкúõØÑÐÏ°ÃæÏò¶ÔÏóÉè¼ÆµÄÉè¼Æģʽ֮ǰ£¬ÎÒ¶ÔJava½Ó¿ÚºÍJava³éÏóÀàµÄÈÏʶ»¹ÊǺÜÄ£ºý£¬ºÜ²»¿ÉÀí½â¡£
¸ÕѧJavaÓïÑÔʱ£¬¾ÍºÜÄÑÀí½âΪʲôҪÓнӿÚÕâ¸ö¸ÅÄËä˵ÊÇ¿ÉÒÔʵÏÖËùνµÄ¶à¼Ì³Ð£¬¿ÉÒ»¸öÖ»Óз½·¨Ãû£¬Ã»Óз½·¨ÌåµÄ¶«Î÷£¬ÎÒʵÏÖËüÓÖÓÐʲôÓÃÄØ£¿ÎÒ´ÓËüÄÇʲôҲµÃ²»µ½£¬³ýÁËһЩ·½·¨Ãû£¬ÎÒÖ±½ÓÔÚ¾ßÌåÀàÀï¼ÓÈëÕâЩ·½ ......

Java HTML ParserÓ¦ÓÃ

×î½üÒòΪÏîÄ¿ÐèÒª£¬Ñо¿ÁËjava html parserÀà¿âµÄÓ¦Ó᣼ǼÏÂʹÓÃÒªµã£º
Ö÷ÒªµÄÀà˵Ã÷£º
1¡¢ParserÀà
½âÎöÆ÷Ö÷À࣬¸ºÔðÔØÈëHTML´úÂë²¢½âÎö¡£
2¡¢Node½Ó¿Ú
ÓÃÀ´±íÕ÷ÔÚ½âÎö¹ý³ÌÖÐʹÓõÄÓï·¨µ¥Ôª¡£Ê¾ÀýÈç϶Îhtml´úÂ룺
<span> ----Tag node
text ----Text Node
</span>
Îı¾ºÍ±êÇ©¶¼ÊǶÀÁ¢µÄnodeÔªËØ¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ