JAVA¸÷ÕÂÏ°Ìâ¼°´ð°¸ ÏÂÔر¾ÎÄ

catch(Exception e){ e.printStackTrace(); } } }

A£®new File(\ B£®new File(\ C£®new File(\ D£®new File(\¡¾½âÎö¡¿ÔÚ³ÌÐòÖУ¬Ä¿Â¼Ö®¼äµÄÁ¬½Ó·ûÊÇ¡°\\\\¡±»ò¡°/¡±£¬Òò´ËÊ×ÏÈÅųýBºÍC£»¶øĬÈÏÇé¿öÏ£¬´´½¨Ïà¶ÔĿ¼ÊÇÔÚµ±Ç°Ä¿Â¼Ï½øÐУ¬¶ødir815Ò²ÔÚµ±Ç°Ä¿Â¼Ï£¬Òò´ËÒªÔÚdir815Ï´´½¨ÐµÄĿ¼£¬¾Í±ØÐëʹÓÃDµÄÐÎʽ¡£

6£®ÏÂÁÐÁ÷ÖÐÄÄÒ»¸öʹÓÃÁË»º³åÇø¼¼Êõ£¨ A £©£¿

A£®BufferedOutputStream B£®FileInputStream C£®DataOutputStream D£®FileReader ¡¾½âÎö¡¿Ö»ÓÐBufferedOutputStreamʹÓÃÁË»º³åÇø¼¼Êõ¡£

7£®ÄܶÁÈë×Ö½ÚÊý¾Ý½øÐÐJava»ù±¾Êý¾ÝÀàÐÍÅжϹýÂǵÄÀàÊÇ£¨ C £©¡£

A£®BufferedInputStream B£®FileInputStream C£®DataInputStream D£®FileReader

¡¾½âÎö¡¿DataInputStreamÀàÔÚ¶ÁÈë×Ö½ÚÊý¾Ýʱ£¬½øÐÐJava»ù±¾Êý¾ÝÀàÐÍÅжϹýÂÇ¡£ 8£®Ê¹ÓÃÄÄÒ»¸öÀà¿ÉÒÔʵÏÖÔÚÎļþµÄÈÎÒ»¸öλÖöÁдһ¸ö¼Ç¼£¨ B £©£¿

A£®BufferedInputStream B£®RandomAccessFile C£®FileWriter D£®FileReader

¡¾½âÎö¡¿Ö»ÓÐRandomAccessFile²ÅÄÜʵÏÖÔÚÎļþµÄÈÎÒ»¸öλÖöÁдһ¸ö¼Ç¼¡£

9£®ÔÚͨ³£Çé¿öÏ£¬ÏÂÁÐÄĸöÀàµÄ¶ÔÏó¿ÉÒÔ×÷ΪBufferedReaderÀ๹Ôì·½·¨µÄ²ÎÊý£¨ C £©£¿

A£®PrintStream B£®FileInputStream C£®InputStreamReader D£®FileReader

¡¾½âÎö¡¿InputStreamReaderÀàµÄ¶ÔÏó¿ÉÒÔ×÷ΪBufferedReaderÀ๹Ôì·½·¨µÄ²ÎÊý¡£ 10£®ÈôÎļþÊÇRandomAccessFileµÄʵÀýf£¬²¢ÇÒÆä»ù±¾Îļþ³¤¶È´óÓÚ0£¬ÔòÏÂÃæµÄÓï¾ä

ʵÏֵŦÄÜÊÇ£¨ B £©¡£ f.seek(f.length()-1);

A£®½«ÎļþÖ¸ÕëÖ¸ÏòÎļþµÄµÚÒ»¸ö×Ö·ûºóÃæ B£®½«ÎļþÖ¸ÕëÖ¸ÏòÎļþµÄ×îºóÒ»¸ö×Ö·ûÇ°Ãæ C£®½«ÎļþÖ¸ÕëÖ¸ÏòÎļþµÄ×îºóÒ»¸ö×Ö·ûºóÃæ D£®»áµ¼ÖÂseek()·½·¨Å׳öÒ»¸öIOExceptionÒì³£

¡¾½âÎö¡¿Í¨¹ýµ÷ÓÃf¶ÔÏóµÄlength()·½·¨£¬¿ÉÒÔ½«ÎļþÖ¸ÕëÖ¸ÏòÎļþµÄĩ⣬Òò´Ëf.length()-1¼´Ö¸ÏòÎļþµÄ×îºóÒ»¸ö×Ö·ûÇ°Ãæ¡£

11£®ÏÂÁйØÓÚÁ÷ÀàºÍFileÀàµÄ˵·¨ÖдíÎóµÄÒ»ÏîÊÇ£¨ B £©¡£

A£®FileÀà¿ÉÒÔÖØÃüÃûÎļþ B£®FileÀà¿ÉÒÔÐÞ¸ÄÎļþÄÚÈÝ C£®Á÷Àà¿ÉÒÔÐÞ¸ÄÎļþÄÚÈÝ D£®Á÷À಻¿ÉÒÔн¨Ä¿Â¼ ¡¾½âÎö¡¿Ö»ÓÐÁ÷Àà¿ÉÒÔÐÞ¸ÄÎļþÄÚÈÝ£¬¶øFileÀàÔò²»ÄÜ¡£

12£®ÈôҪɾ³ýÒ»¸öÎļþ£¬Ó¦¸ÃʹÓÃÏÂÁÐÄĸöÀàµÄʵÀý£¨ B £©£¿

A£®RandomAccessFile B£®File C£®FileOutputStream D£®FileReader

¡¾½âÎö¡¿ÒªÉ¾³ýÎļþÒÔ¼°²é¿´ÎļþÊôÐԵȣ¬Ó¦Ê¹ÓÃFileÀà¶ÔÏóÀ´ÊµÏÖ¡£

29

13£®ÏÂÁÐÄÄÒ»¸öÊÇJavaϵͳµÄ±ê×¼ÊäÈëÁ÷¶ÔÏó£¨ £©£¿

A£®System.out B£®System.in C£®System.exit D£®System.err ¡¾½âÎö¡¿System.inÊÇJavaϵͳµÄ±ê×¼ÊäÈëÁ÷¶ÔÏ󣬶øSystem.outºÍSystem.errÔòÊÇJavaϵͳµÄ±ê×¼Êä³öÁ÷ºÍ±ê×¼´íÎó¶ÔÏó£¬System.exitÔòÊÇSystemÀàµÄÍ˳ö·½·¨¡£ 14£®Javaϵͳ±ê×¼Êä³ö¶ÔÏóSystem.outʹÓõÄÊä³öÁ÷ÊÇ£¨ A £©¡£

A£®PrintStream B£®PrintWriter C£®DataOutputStream D£®FileReader ¡¾½âÎö¡¿System.outÊôÐÔÊÇPrintStreamÀàÐ͵ĶÔÏó¡£ ¶þ¡¢Ìî¿ÕÌâ

1£®JavaµÄÊäÈëÊä³öÁ÷°üÀ¨ ×Ö½ÚÁ÷ ¡¢ ×Ö·ûÁ÷ ¡¢ ÎļþÁ÷ ¡¢ ¶ÔÏóÁ÷ ÒÔ¼°¶àÏß³ÌÖ®¼äͨÐÅµÄ ¹ÜµÀÁ÷ ¡£

2£®·²ÊÇ´ÓÍⲿÉ豸Á÷ÏòÖÐÑë´¦ÀíÆ÷µÄÊý¾ÝÁ÷£¬³Æ֮Ϊ ÊäÈë Á÷£»·´Ö®£¬³Æ֮Ϊ Êä³ö Á÷¡£

3£®java.io°üÖеĽӿÚÖУ¬´¦Àí×Ö½ÚÁ÷µÄÓÐ DataInput ½Ó¿ÚºÍ DataOutput ½Ó¿Ú¡£

4£®ËùÓеÄ×Ö½ÚÊäÈëÁ÷¶¼´Ó InputStream Àà¼Ì³Ð£¬ËùÓеÄ×Ö½ÚÊä³öÁ÷¶¼´Ó OutputSteam Àà¼Ì³Ð¡£

5£®ÓëÓÃÓÚ¶Áд×Ö½ÚÁ÷µÄInputStreamÀàºÍOutputStreamÀàÏà¶ÔÓ¦£¬Java»¹ÌṩÁËÓÃÓÚ¶Á

дUnicode×Ö·ûµÄ×Ö·ûÁ÷ Reader ÀàºÍ Writer Àà¡£

6£®¶ÔÒ»°ãµÄ¼ÆËã»úϵͳ£¬±ê×¼ÊäÈëͨ³£ÊÇ ¼üÅÌ £¬±ê×¼Êä³öͨ³£ÊÇ ÏÔʾÆ÷ ¡£

7£®JavaϵͳÊÂÏȶ¨ÒåºÃÁ½¸öÁ÷¶ÔÏ󣬷ֱðÓëϵͳµÄ±ê×¼ÊäÈëºÍ±ê×¼Êä³öÏàÁªÏµ£¬ËüÃÇ

ÊÇ System.in ºÍ System.out ¡£

8£®SystemÀàµÄËùÓÐÊôÐԺͷ½·¨¶¼ÊÇ StaticÀàÐÍ µÄ£¬¼´µ÷ÓÃʱÐèÒªÒÔÀàÃûSystemΪǰ׺¡£

9£®JavaµÄ±ê×¼ÊäÈëSystem.inÊÇ InputStream ÀàµÄ¶ÔÏ󣬵±³ÌÐòÖÐÐèÒª´Ó¼üÅ̶ÁÈëÊý¾Ý

µÄʱºò£¬Ö»Ðèµ÷ÓÃSystem.inµÄ read ·½·¨¼´¿É¡£

10£®Ö´ÐÐSystem.in.read()·½·¨½«´Ó¼üÅÌ»º³åÇø¶ÁÈëÒ»¸ö ×Ö½Ú µÄÊý¾Ý£¬È»¶ø·µ»ØµÄÈ´ÊÇ16±ÈÌØµÄ ÕûÐÎÁ¿ £¬ÐèҪעÒâµÄÊÇÖ»ÓÐÕâ¸ö ÕûÐÎÁ¿ µÄµÍλ×Ö½ÚÊÇÕæÕýÊäÈëµÄÊý¾Ý£¬Æä¸ßλ×Ö½Ú È«²¿Îª0 ¡£

11£®System.inÖ»ÄÜ´Ó¼üÅ̶ÁÈ¡ ¶þ½øÖÆ µÄÊý¾Ý£¬¶ø²»ÄÜ°ÑÕâЩ±ÈÌØÐÅϢת»»ÎªÕû

Êý¡¢×Ö·û¡¢¸¡µãÊý»ò×Ö·û´®µÈ¸´ÔÓÊý¾ÝÀàÐ͵ÄÁ¿¡£

12£®JavaµÄ±ê×¼Êä³öSystem.outÊÇ PrintStream ÀàµÄ¶ÔÏó¡£ PrintStream ÀàÊǹýÂËÊä³öÁ÷ÀàFilterOutputStreamµÄÒ»¸ö×ÓÀ࣬ÆäÖж¨ÒåÁËÏòÆÁÄ»ÊäËͲ»Í¬ÀàÐÍÊý¾ÝµÄ·½·¨ print() ºÍ println() ¡£

13£®ÔÚJavaÖУ¬±ê×¼´íÎóÉ豸Óà System.err ±íʾ¡£ËüÊôÓÚPrintStream Àà¶ÔÏó¡£ 14£®ÔÚ¼ÆËã»úϵͳÖУ¬ÐèÒª³¤ÆÚ±£ÁôµÄÊý¾ÝÊÇÒÔ Îļþ µÄÐÎʽ´æ·ÅÔÚ´ÅÅÌ¡¢´Å´øµÈÍâ

´æ´¢É豸Öеġ£

15£® Ŀ¼ ÊǹÜÀíÎļþµÄÌØÊâ»úÖÆ£¬Í¬ÀàÎļþ±£´æÔÚͬһ Ŀ¼ Ï¿ÉÒÔ¼ò»¯ÎļþµÄ

¹ÜÀí£¬Ìá¸ß¹¤×÷ЧÂÊ¡£

16£®JavaÓïÑÔµÄjava.io°üÖÐµÄ File ÀàÊÇרÃÅÓÃÀ´¹ÜÀí´ÅÅÌÎļþºÍĿ¼µÄ¡£µ÷Óà File

ÀàµÄ·½·¨Ôò¿ÉÒÔÍê³É¶ÔÎļþ»òĿ¼µÄ³£ÓùÜÀí²Ù×÷£¬Èç´´½¨Îļþ»òĿ¼¡¢É¾³ýÎļþ»òĿ¼¡¢²é¿´ÎļþµÄÓйØÐÅÏ¢µÈ¡£

17£®FileÀàÒ²ËäÈ»ÔÚjava.io°üÖУ¬µ«Ëü²»ÊÇInputStream»òÕßOutputStreamµÄ×ÓÀ࣬ÒòΪ

Ëü²»¸ºÔð Êý¾ÝµÄÊäÈëÊä³ö £¬¶øרÃÅÓÃÀ´¹ÜÀí ÎļþºÍĿ¼ ¡£

18£®Èç¹ûÏ£Íû´Ó´ÅÅÌÎļþ¶ÁÈ¡Êý¾Ý£¬»òÕß½«Êý¾ÝдÈëÎļþ£¬»¹ÐèҪʹÓÃÎļþÊäÈëÊä³ö

30

Á÷Àà

FileInputStream ºÍ FileOutputStream ¡£ 20£®ÀûÓà DataInputStream ÀàºÍ DataOutputStream ÀàÌṩµÄ³ÉÔ±·½·¨¿ÉÒÔ·½±ãµØ´ÓÎļþÖжÁд²»Í¬ÀàÐ͵ÄÊý¾Ý¡£ 21£®JavaÖÐµÄ RandomAccessFile ÀàÌṩÁËËæ»ú·ÃÎÊÎļþµÄ¹¦ÄÜ£¬Ëü¼Ì³ÐÁË Object À࣬Óà DataInput ºÍ DataOutput ½Ó¿ÚÀ´ÊµÏÖ¡£

µÚ9ÕÂ

Ò»¡¢Ñ¡ÔñÌâ

1£®ÏÂÁÐ˵·¨ÖУ¬ÕýÈ·µÄÒ»ÏîÊÇ£¨ A £©¡£

A£®µ¥´¦Àí»úµÄ¼ÆËã»úÉÏ£¬2¸öÏß³Ìʵ¼ÊÉϲ»Äܲ¢·¢Ö´ÐÐ B£®µ¥´¦Àí»úµÄ¼ÆËã»úÉÏ£¬2¸öÏß³Ìʵ¼ÊÉÏÄܹ»²¢·¢Ö´ÐÐ C£®Ò»¸öÏ߳̿ÉÒÔ°üº¬¶à¸ö½ø³Ì D£®Ò»¸ö½ø³ÌÖ»ÄÜ°üº¬Ò»¸öÏß³Ì

¡¾½âÎö¡¿µ¥´¦Àí»úµÄ¼ÆËã»úÉÏͨ¹ýÒ»¸ö¼«¶ÌµÄ¹Ì¶¨Ê±¼ä¶Î»òÕßÔÚÏ̵߳ȴýʱ£¬Çл»µ½ÁíÒ»¸öỊ̈߳¬ÕâÖÖµ÷¶È¹ý³Ìʱ¼ä¼«¶Ì£¬¿´ÉÏÈ¥ÏñÊDz¢·¢Ö´ÐС£ 2£®ÏÂÁÐ˵·¨ÖУ¬´íÎóµÄÒ»ÏîÊÇ£¨ A £©¡£ A£®Ï߳̾ÍÊdzÌÐò B£®Ïß³ÌÊÇÒ»¸ö³ÌÐòµÄµ¥¸öÖ´ÐÐÁ÷ C£®¶àÏß³ÌÊÇÖ¸Ò»¸ö³ÌÐòµÄ¶à¸öÖ´ÐÐÁ÷ D£®¶àÏß³ÌÓÃÓÚʵÏÖ²¢·¢

¡¾½âÎö¡¿Ïß³ÌÊÇÒ»¸ö³ÌÐòµÄµ¥¸öÖ´ÐÐÁ÷£¬¶ø²»ÊdzÌÐò±¾Éí¡£¶ø¶àÏß³Ì×÷ΪʵÏÖ²¢·¢µÄÒ»¸öÖØÒªÊֶΣ¬ÊÇÒ»¸ö³ÌÐòµÄ¶à¸öÖ´ÐÐÁ÷¡£

3£®ÏÂÁйØÓÚThreadÀàµÄÏ߳̿ØÖÆ·½·¨µÄ˵·¨ÖдíÎóµÄÒ»ÏîÊÇ£¨ C £©¡£ A£®Ï߳̿ÉÒÔͨ¹ýµ÷ÓÃsleep()·½·¨Ê¹±Èµ±Ç°Ïß³ÌÓÅÏȼ¶µÍµÄÏß³ÌÔËÐÐ B£®Ï߳̿ÉÒÔͨ¹ýµ÷ÓÃyield()·½·¨Ê¹ºÍµ±Ç°Ïß³ÌÓÅÏȼ¶Ò»ÑùµÄÏß³ÌÔËÐÐ C£®Ï̵߳Äsleep()·½·¨µ÷ÓýáÊøºó£¬¸ÃÏ߳̽øÈëÔËÐÐ״̬

D£®ÈôûÓÐÏàͬÓÅÏȼ¶µÄÏ̴߳¦ÓÚ¿ÉÔËÐÐ״̬£¬Ï̵߳÷ÓÃyield()·½·¨Ê±£¬µ±Ç°Ïß³Ì

½«¼ÌÐøÖ´ÐÐ

¡¾½âÎö¡¿Ï̵߳Äsleep()·½·¨µ÷ÓýáÊøºó£¬¸ÃÏ߳̽øÈë¾ÍÐ÷״̬£¬¶ø²»ÊÇÔËÐÐ״̬¡£ 4£®·½·¨resume()¸ºÔð»Ö¸´ÏÂÁÐÄÄÒ»¸öÏ̵߳ÄÖ´ÐУ¨ D £©£¿ A£®Í¨¹ýµ÷ÓÃstop()·½·¨¶øÍ£Ö¹µÄÏß³Ì B£®Í¨¹ýµ÷ÓÃsleep()·½·¨¶øÍ£Ö¹µÄÏß³Ì

C£®Í¨¹ýµ÷ÓÃwait()·½·¨¶øÍ£Ö¹µÄÏß³Ì D£®Í¨¹ýµ÷ÓÃsuspend()·½·¨¶øÍ£Ö¹µÄÏß³Ì

¡¾½âÎö¡¿Í¨¹ýµ÷ÓÃsuspend()·½·¨¶øÍ£Ö¹µÄÏß³ÌÐèÒªµ÷ÓÃresume()»Ö¸´¡£

5£®ÏÂÃæµÄÄÄÒ»¸ö¹Ø¼ü×Öͨ³£ÓÃÀ´¶Ô¶ÔÏó¼ÓËø£¬´Ó¶øʹµÃ¶Ô¶ÔÏóµÄ·ÃÎÊÊÇÅÅËûµÄ£¨ C £©£¿

A£®serialize B£®transient C£®synchronized D£®static ¡¾½âÎö¡¿synchronizedÓÃÀ´¶Ô¶ÔÏó¼ÓËø£¬´Ó¶øʹµÃ¶Ô¶ÔÏóµÄ·ÃÎÊÊÇÅÅËûµÄ¡£ 6£®ÏÂÁÐ˵·¨ÖУ¬´íÎóµÄÒ»ÏîÊÇ£¨ A £©¡£ A£®Ïß³ÌÒ»µ©´´½¨£¬ÔòÁ¢¼´×Ô¶¯Ö´ÐÐ

B£®Ï̴߳´½¨ºóÐèÒªµ÷ÓÃstart()·½·¨£¬½«Ïß³ÌÖÃÓÚ¿ÉÔËÐÐ״̬ C£®µ÷ÓÃÏ̵߳Ästart()·½·¨ºó£¬Ïß³ÌÒ²²»Ò»¶¨Á¢¼´Ö´ÐÐ D£®Ï̴߳¦ÓÚ¿ÉÔËÐÐ״̬£¬Òâζ×ÅËü¿ÉÒÔ±»µ÷¶È

¡¾½âÎö¡¿Ï̴߳´½¨ºóÐèÒªµ÷ÓÃstart()·½·¨£¬½«Ïß³ÌÖÃÓÚ¿ÉÔËÐÐ״̬¡£

31

7£®ÏÂÁÐ˵·¨ÖУ¬´íÎóµÄÒ»ÏîÊÇ£¨ A £©¡£ A£®ThreadÀàÖÐûÓж¨Òårun()·½·¨ B£®¿ÉÒÔͨ¹ý¼Ì³ÐThreadÀàÀ´´´½¨Ïß³Ì C£®Runnable½Ó¿ÚÖж¨ÒåÁËrun()·½·¨ D£®¿ÉÒÔͨ¹ýʵÏÖRunnable½Ó¿Ú´´½¨Ïß³Ì

¡¾½âÎö¡¿ThreadÀàºÍRunnable½Ó¿ÚÖж¼¶¨ÒåÁËrun()·½·¨£¬¶østart()·½·¨Ö»ÓÐThreadÀàÖнøÐÐÁ˶¨Ò壬¶øRunnable½Ó¿ÚÖÐûÓж¨Òå¡£ 8£®ThreadÀඨÒåÔÚÏÂÁÐÄĸö°üÖУ¨ B £©£¿ A£®java.io B£®java.lang C£®java.util D£®java.awt ¡¾½âÎö¡¿ThreadÀඨÒåÔÚjava.lang°üÖУ¬Òò´ËʹÓÃʱ¿ÉÒÔ²»ÓÃÏÔʽ¼ÓÔØ¡£ ¶þ¡¢Ìî¿ÕÌâ

1£®¶àÏß³ÌÊÇÖ¸³ÌÐòÖÐͬʱ´æÔÚ×Å ¶à ¸öÖ´ÐÐÌ壬ËüÃÇ°´¼¸Ìõ²»Í¬µÄÖ´ÐзÏß¹²Í¬¹¤×÷£¬¶ÀÁ¢Íê³É¸÷×ԵŦÄܶø»¥²»¸ÉÈÅ¡£

2£®Ã¿¸öJava³ÌÐò¶¼ÓÐÒ»¸öȱʡµÄÖ÷Ị̈߳¬¶ÔÓÚApplicationÀàÐ͵ijÌÐòÀ´Ëµ£¬Ö÷Ïß³ÌÊÇ·½·¨ main() Ö´ÐеÄÏ̡߳£

3£®JavaÓïÑÔʹÓà Thread À༰Æä×ÓÀàµÄ¶ÔÏóÀ´±íʾỊ̈߳¬Ð½¨µÄÏß³ÌÔÚËüµÄÒ»¸öÍêÕûµÄÉúÃüÖÜÆÚÖÐͨ³£Òª¾­Àú ÐÂÉú ¡¢ ¾ÍÐ÷ ¡¢ ÔËÐÐ ¡¢ ×èÈû ºÍ ËÀÍö µÈÎåÖÖ״̬¡£

4£®ÔÚJavaÖУ¬´´½¨Ï̵߳ķ½·¨ÓÐÁ½ÖÖ£ºÒ»ÖÖ·½·¨ÊÇͨ¹ý´´½¨ Thread ÀàµÄ×ÓÀàÀ´ÊµÏÖ£¬ÁíÒ»ÖÖ·½·¨ÊÇͨ¹ýʵÏÖ Runnable ½Ó¿ÚµÄÀàÀ´ÊµÏÖ¡£

5£®Óû§¿ÉÒÔͨ¹ýµ÷ÓÃThreadÀàµÄ·½·¨ setPriority() À´ÐÞ¸Äϵͳ×Ô¶¯É趨µÄÏß³ÌÓÅÏȼ¶£¬Ê¹Ö®·ûºÏ³ÌÐòµÄÌض¨ÐèÒª¡£

6£® start() ·½·¨½«Æô¶¯Ï̶߳ÔÏó£¬Ê¹Ö®´Óн¨×´Ì¬×ªÈë¾ÍÐ÷״̬²¢½øÈë¾ÍÐ÷¶ÓÁÐÅŶӡ£ 7£®ThreadÀàºÍRunnable½Ó¿ÚÖй²Óеķ½·¨ÊÇ run() £¬Ö»ÓÐThreadÀàÖÐÓжøRunnable½Ó¿ÚÖÐûÓеķ½·¨ÊÇ start() £¬Òò´Ëͨ¹ýʵÏÖRunnable½Ó¿Ú´´½¨µÄÏß³ÌÀàÒªÏëÆô¶¯Ị̈߳¬±ØÐëÔÚ³ÌÐòÖд´½¨ Thread ÀàµÄ¶ÔÏó¡£

µÚ10ÕÂ

Ò»¡¢Ñ¡ÔñÌâ

2£®½øÐÐJava»ù±¾GUIÉè¼ÆÐèÒªÓõ½µÄ°üÊÇ£¨ C £©¡£

A£®java.io B£®java.sql C£®java.awt D£®java.rmi ¡¾½âÎö¡¿½øÐÐJava»ù±¾GUIÉè¼ÆÐèÒªÓõ½µÄ°üÊÇjava.awtºÍjavax.swing 3£®ContainerÊÇÏÂÁÐÄÄÒ»¸öÀàµÄ×ÓÀࣨ D £©£¿

A£®Graphics B£®Window C£®Applet D£®Component ¡¾½âÎö¡¿ContainerÀàÊÇÓÉComponentÀàÅÉÉúµÄ¡£ 4£®java.awt.FrameµÄ¸¸ÀàÊÇ£¨ B £©¡£

A£®java.util.Window B£®java.awt Window C£®java.awt Panel D£®java.awt.ScrollPane ¡¾½âÎö¡¿java.awt.FrameµÄ¸¸Ààjava.awt Window¡£

5£®ÏÂÁÐÄĸö·½·¨¿ÉÒÔ½«MenuBar¼ÓÈëFrameÖУ¨ D £©£¿

A£®setMenu() B£®addMenuBar() C£®add() D£®setMenuBar() ¡¾½âÎö¡¿¿ÉÒÔ½«MenuBar¼ÓÈëFrameÖеķ½·¨ÊÇsetMenuBar()¡£ 7£®µ±µ¥»÷Êó±ê»òÍ϶¯Êó±êʱ£¬´¥·¢µÄʼþÊÇ£¨ D £©¡£

32