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

java ÃæÊÔÌâ59µÀ£¨º¬²Î¿¼´ð°¸£©


Java
»ù´¡·½Ãæ
:
 
1
¡¢×÷ÓÃÓò
public,private,protected,
ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£º
Çø±ðÈçÏ£º
×÷ÓÃÓò
           
µ±Ç°Àà
       
ͬһ
package  
×ÓËïÀà
       
ÆäËû
package
public            √              √                  √             √
protected        √              √                  √             ×
friendly          √              √                   ×            ×
private           √              ×                   ×            ×
²»Ð´Ê±Ä¬ÈÏΪ
friendly
2
¡¢
Anonymous Inner Class (
ÄäÃûÄÚ²¿Àà

ÊÇ·ñ¿ÉÒÔ
extends(
¼Ì³Ð
)
ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔ
implements(
ʵÏÖ
)interface(
½Ó¿Ú
)
´ð£º
ÄäÃûµÄÄÚ²¿À


Ïà¹ØÎĵµ£º

IOÓëÎļþ¶Áд JavaµÄIOÁ÷¼Ü¹¹

¡¾Ò»¡¿»ùÓÚ×Ö½ÚµÄÊäÈëÁ÷
ÖµµÃ×¢ÒâµÄµØ·½ÓУº
¢ÙLevel 2µÄÊäÈëÁ÷£¬´ó¶àÊý¶¼»áÖ¸Ã÷Êý¾ÝÔ´µÄÐÎʽ£ºÀýÈçByteArray£¬File£¬Piped
¢ÚLevel 3µÄÊäÈëÁ÷£¬Ôò²»»á³öÏÖ¾ßÌåµÄÊý¾ÝÔ´Ãû×Ö£¬¶øÊÇÒÔ¹¦ÄÜÈ¡´ú£ºÀýÈçBuffered£¬LineNumber
ËùÒÔ˵Level 3µÄÊäÈëÁ÷ÊǶÔLevel 2ÊäÈëÁ÷µÄ“·â×°ºÍ¹ýÂË”¡£Êµ¼ÊÉÏLevel 2µÄÊäÈëÁ÷£¬¶ ......

Java½âÎöÍøÂçÊý¾ÝÁ÷µÄÈýÖÖÌØÊâ·½·¨

Ò»¡¢UTF8ת»»³ÉGB2312
       
µ±ÎÒÃÇÔÚ»ùÓÚHTTPЭÒéµÄJSP»òServletµÄÓ¦ÓÃÖлñÈ¡Êý¾Ý»ò·¢ËÍÇëÇóʱ£¬JVM»á°ÑÊäË͵ÄÊý¾Ý±àÂë³ÉUTF8¸ñʽ¡£Èç¹ûÎÒÃÇÖ±½Ó´ÓHTTPÁ÷ÖÐÌáÈ¡ÖÐÎÄÊý¾Ý£¬ÌáÈ¡µÄ½á¹ûΪ“????”£¨¿ÉÄܸü¶àÎʺţ©£¬Îª×ª»»³ÉÎÒÃÇÄܹ»Àí½âµÄÖÐÎÄ×Ö·û£¬ÎÒÃÇÐèÒª°ÑUTF8ת»»³É ......

¿ì²¥javaÃæÊÔÌâ

1.±ÊÊÔÌâºÜ¼òµ¥£¬¶¼ÊÇһЩ»ù´¡ÖªÊ¶¡£
2.ÓиöÃæÊÔÌâ±»Äѵ¹ÁË£¬¿´ÊÇ·ñÓÐÄÄλ´óÏÀÄܵ㲦µã²¦
  
   ¹ØÓÚ´óÈÝÁ¿Îı¾¼ìË÷µÄÎÊÌ⣺һ¸öÎı¾ÎļþÖÐÓм¸Ê®ÍòÌõ»ò¸ü¶àµÄ¼Ç¼£¬¼Ç¼ÒÔÐÐΪµ¥Î»£¬Ã¿ÐеÄÐÅÏ¢ÈçÏ£º
   Óû§id£¬Óû§Ãû£¬..........................
  
  ÓÐʲôºÃµ ......

dzÎöJavaµÄ¡°¿Ë¡¡±·½·¨ תÌù

ZT:http://javahy.javaeye.com/blog/384871
¡¡¡¡JavaÓïÑÔµÄÒ»¸öÓŵã¾ÍÊÇÈ¡ÏûÁËÖ¸ÕëµÄ¸ÅÄµ«Ò²µ¼ÖÂÁËÐí¶à³ÌÐòÔ±ÔÚ±à³ÌÖг£³£ºöÂÔÁ˶ÔÏóÓëÒýÓõÄÇø±ð£¬±¾ÎÄ»áÊÔͼ³ÎÇåÕâÒ»¸ÅÄî¡£²¢ÇÒÓÉÓÚJava²»ÄÜͨ¹ý¼òµ¥µÄ¸³ÖµÀ´½â¾ö¶ÔÏó¸´ÖƵÄÎÊÌ⣬ÔÚ¿ª·¢¹ý³ÌÖУ¬Ò²³£³£ÒªÒªÓ¦ÓÃclone£¨£©·½·¨À´¸´ÖƶÔÏó¡£±¾ÎÄ»áÈÃÄãÁ˽âʲôÊÇÓ°×Óclone ......

ÄãÄÜͨ¹ýÏÂÃæµÄ3µÀjavaÃæÊÔÌâÂð?

1.java static inner class ºÍ non-static inner classµÄÇø±ð?
2.Çëд³öÒ»¸ösingletonģʽµÄclass.
ÄãÈç¹ûд³öÏÂÃæµÄ2ÖÖÑùʽ,ÎÒ»áÎÊÄã:ÇëÎÊÄãÈçºÎÔÚͬһ¸öjvmÖв¢ÇÒÔÚͬһ¸öclassLoaderÖеõ½ËüµÄ¶à¸öʵÀý?(Çë²»ÒªÆæ¹Ö)
ÑùÁÐ1:
public class Singleton {  
 private final static Singleton instance= ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ