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

Java³ÌÐòÔ±ÃæÊÔ±ØÎʵÄÌâÄ¿£¬Äã»á¼¸µÀ£¿

       µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ 
¡¡¡¡µÚ¶þ£¬Anonymous Inner Class (ÄäÃûÄÚ²¿Àà) ÊÇ·ñ¿ÉÒÔextends(¼Ì³Ð)ÆäËüÀ࣬ÊÇ·ñ¿ÉÒÔimplements(ʵÏÖ)interface(½Ó¿Ú)? 
¡¡¡¡µÚÈý£¬Static Nested Class ºÍ Inner ClassµÄ²»Í¬£¬ËµµÃÔ½¶àÔ½ºÃ(ÃæÊÔÌâÓеĺÜÁýͳ)¡£ 
¡¡¡¡µÚËÄ£¬&ºÍ&&µÄÇø±ð¡£ 
¡¡¡¡µÚÎ壬HashMapºÍHashtableµÄÇø±ð¡£ 
¡¡¡¡µÚÁù£¬Collection ºÍ CollectionsµÄÇø±ð¡£ 
¡¡¡¡µÚÆß£¬Ê²Ã´Ê±ºòÓÃassert¡£ 
¡¡¡¡µÚ°Ë£¬GCÊÇʲô? ΪʲôҪÓÐGC? 
¡¡¡¡µÚ¾Å£¬String s = new String( "xyz ");´´½¨Á˼¸¸öString Object? 
¡¡¡¡µÚÊ®£¬Math.round(11.5)µÈì¶¶àÉÙ? Math.round(-11.5)µÈì¶¶àÉÙ? 
¡¡¡¡µÚʮһ£¬short s1 = 1; s1 = s1 + 1;ÓÐʲô´í? short s1 = 1; s1 += 1;ÓÐʲô´í? 
¡¡¡¡µÚÊ®¶þ£¬sleep() ºÍ wait() ÓÐÊ²Ã´Çø±ð? 
¡¡¡¡µÚÊ®Èý£¬JavaÓÐûÓÐgoto? 
¡¡¡¡µÚÊ®ËÄ£¬Êý×éÓÐûÓÐlength()Õâ¸ö·½·¨? StringÓÐûÓÐlength()Õâ¸ö·½·¨? 
¡¡¡¡µÚÊ®Î壬OverloadºÍOverrideµÄÇø±ð¡£OverloadedµÄ·½·¨ÊÇ·ñ¿ÉÒԸı䷵»ØÖµµÄÀàÐÍ? 
¡¡¡¡µÚÊ®Áù£¬SetÀïµÄÔªËØÊDz»ÄÜÖØ¸´µÄ£¬ÄÇôÓÃʲô·½·¨À´Çø·ÖÖØ¸´Óë·ñÄØ? ÊÇÓÃ==»¹ÊÇequals()? ËüÃÇÓкÎÇø±ð? 
¡¡¡¡µÚÊ®Æß£¬¸øÎÒÒ»¸öÄã×î³£¼ûµ½µÄruntime exception¡£ 
¡¡¡¡µÚÊ®°Ë£¬errorºÍexceptionÓÐÊ²Ã´Çø±ð? 
¡¡¡¡µÚÊ®¾Å£¬List, Set, MapÊÇ·ñ¼Ì³Ð×ÔCollection½Ó¿Ú? 
¡¡¡¡µÚ¶þÊ®£¬abstract classºÍinterfaceÓÐÊ²Ã´Çø±ð? 
¡¡¡¡µÚ¶þʮһ£¬abstractµÄmethodÊÇ·ñ¿ÉͬʱÊÇstatic,ÊÇ·ñ¿ÉͬʱÊÇnative£¬ÊÇ·ñ¿ÉͬʱÊÇsynchronized? 
¡¡¡¡µÚ¶þÊ®¶þ£¬½Ó¿ÚÊÇ·ñ¿É¼Ì³Ð½Ó¿Ú? ³éÏóÀàÊÇ·ñ¿ÉʵÏÖ(implements)½Ó¿Ú? ³éÏóÀàÊÇ·ñ¿É¼Ì³ÐʵÌåÀà(concrete class)? 
¡¡¡¡µÚ¶þÊ®Èý£¬Æô¶¯Ò»¸öÏß³ÌÊÇÓÃrun()»¹ÊÇstart()? 
¡¡¡¡µÚ¶þÊ®ËÄ£¬¹¹ÔìÆ÷ConstructorÊÇ·ñ¿É±»override? 
¡¡¡¡µÚ¶þÊ®Î壬ÊÇ·ñ¿ÉÒԼ̳ÐStringÀà? 
¡¡¡¡µÚ¶þÊ®Áù£¬µ±Ò»¸öÏ߳̽øÈëÒ»¸ö¶ÔÏóµÄÒ»¸ösynchronized·½·¨ºó£¬ÆäËüÏß³ÌÊÇ·ñ¿É½øÈë´Ë¶ÔÏóµÄÆäËü·½·¨? 
¡¡¡¡µÚ¶þÊ®Æß£¬try {}ÀïÓÐÒ»¸öreturnÓï¾ä£¬ÄÇô½ô¸úÔÚÕâ¸ötryºóµÄfinally {}ÀïµÄcode»á²»»á±»Ö´ÐУ¬Ê²Ã´Ê±ºò±»Ö´ÐУ¬ÔÚreturnǰ»¹ÊǺó? 
¡¡¡¡µÚ¶þÊ®°Ë£¬±à³ÌÌâ: ÓÃ×îÓÐЧÂʵķ½·¨Ëã³ö2³ËÒÔ8µÈì¶¼¸? 
¡¡¡¡µÚ¶þÊ®¾Å


Ïà¹ØÎĵµ£º

ËÄÄêjavaÑз¢ ѰǶÈëʽְ룬´ýÓö2K¼´¿É£¬±±¾©

±¾È˾ãËÄÄêÑз¢¾­Ñ飨javaµÄ£©
Ë­¸øÎÒÍÆ¼ö·ÝǶÈëʽcְ룬cÓïÑÔһֱûÂäÏ£¬Ñ§µÄ»¹ÐС£¡£¡£ ¹¤×Ê¿ªÎÒ2k¾ÍÐУ¡
ֻΪ³É¹¦´òÈëǶÈëʽÊг¡¡£¡£¡£¸ø¸ö»ú»á°É¡£¡£
ÎÒÕæµÄÊÇÌ«ÏëºÍÄãÃÇ×öͬÐÐÀ²£¡
ÓÐÒâÏòµÄ¿ÉÒÔÁªÏµÎÒ¡£¡£ ÎÒ²»Ìô´ýÓö£¬¶Ô¹¤×÷¾ÍÒ»¸öÒªÇó£¬Ç¶Èëʽ¿ª·¢¡£¡£¡£ ÎÒÓе쬾ÍÊÇ4ÄêµÄjavaÑз¢¾­ÑéºÍc»ù´¡¡£¡£¡£ ÌáÇ ......

javaÎļþ¹ýÂËÆ÷µÄʹÓÃ

javaÎļþ¹ýÂËÆ÷µÄʹÓôúÂëÈçÏ£º
²âÊÔ´úÂ룺package file;
import java.io.File;
public class fileFilter {
 public static void main(String[] args) {
  File file = new File("d:\\");//ÉèÖÃÎļþ·¾¶
  for (File fileList : file.listFiles(new file.MyFileFilter())) {
   ......

javaÔËÐл·¾³ Àà×°ÔØÆ÷ClassLoader

  ½ñÌì¹Û¿´ÁËÀ¶É½ÀÏʦjava±³ºóµÄÃØÃÜÏà¹ØÊÓÆµ£¬·¢ÏÖÒªÏëд³ö¸ßÐÔÄܵijÌÐò£¬Ò»¶¨Òª¶ÔÆäÔËÐÐÔ­ÀíÒÔ¼°ÆäÔËÐл·¾³ÓÐÏ൱³Ì¶ÈµÄÁ˽⡣ÄÇClassLoaderÊÇÏ൱¹Ø¼üµÄÒ»¸ö²¿·Ö¡£
  ÏÈ˵ÏÂjava³ÌÐòÔËÐеĻù±¾Á÷³Ì£¬ÏȽ«javaÎļþ±àÒëΪclassÎļþ£¬È»ºóͨ¹ýClassLoader£¨Àà¼ÓÔØÆ÷£©£¬¼ÓÔØµ½Runtime Data Area£¨ÀàËÆÓÚÄڴ棩ÖÐ ......

Java Network Game Programming

game
server responsibility:
Initialize
the server socke;

Wait
for a client to connect;

Accept
the client connection;

Create
a daemon thread to support the clien;

Go
back to step 2.

game daemon responsibility:
Accept
client player connection;

Pair ......

Java±à³ÌÄÇЩʶù102——ÍøÂç±à³Ì¼¼Êõ1

13.2.1 ÍøÂç±à³Ì²½Öè
         °´ÕÕÇ°ÃæµÄ»ù´¡ÖªÊ¶½éÉÜ£¬ÎÞÂÛʹÓÃTCP·½Ê½»¹ÊÇUDP·½Ê½½øÐÐÍøÂçͨѶ£¬ÍøÂç±à³Ì¶¼ÊÇÓɿͻ§¶ËºÍ·þÎñÆ÷¶Ë×é³É¡£µ±È»£¬B/S½á¹¹µÄ±à³ÌÖÐÖ»ÐèҪʵÏÖ·þÎñÆ÷¶Ë¼´¿É¡£ËùÒÔ£¬ÏÂÃæ½éÉÜÍøÂç±à³ÌµÄ²½Öèʱ£¬¾ùÒÔC/S½á¹¹Îª»ù´¡½øÐнéÉÜ¡£
     ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ