¡¶JAVAÃæÏò¶ÔÏó³ÌÐòÉè¼Æ¡·Á·Ï°Ìâ - ²Î¿¼´ð°¸ ÏÂÔر¾ÎÄ

} }

}

String s=\ byte b[]=s.getBytes();

FileOutputStream file=new FileOutputStream(\ file.write(b); file.close();

catch(IOException e) { }

A) ABCABC B) ABCDE C) Test D) ABCDE ABCDE ABCDE ¶þ¡¢¶àÑ¡Ìâ

1¡¢ÏÂÃæmain()·½·¨µÄ¶¨ÒåÄÄЩÊÇÕýÈ·µÄ( )£¿

A) public static void main(String args[]) {} B) public static void main(String[]) {}

C) public static void main(String[] args) {} D)public static void main(String [] x) {} 2¡¢Ï̶߳ÔÏóµÄÉúÃüÖÜÆÚÖÐ,ͨ³£¾­ÀúÏÂÃæÄÄЩ״̬£¨ £©¡£ A)н¨ B)ÔËÐÐ C)¾ÍÐ÷ D)ËÀÍö 3¡¢ÏÂÃæ˵·¨ÕýÈ·µÄÊÇ( )¡£

A) final ¿ÉÐÞÊÎÀà¡¢ÊôÐÔ(±äÁ¿)¡¢·½·¨¡£ B) abstract¿ÉÐÞÊÎÀà¡¢·½·¨¡£ C) ³éÏó·½·¨Ö»Óз½·¨Í·£¬Ã»Óз½·¨Ìå¡£

D) ¹Ø¼ü×ÖfinalºÍabstract²»ÄÜͬʱʹÓá£

4¡¢ÏÂÃæ¹ØÓÚjavaÖÐÊäÈë/Êä³öÁ÷µÄ˵·¨ÕýÈ·µÄÊÇ( )¡£

A) FileInputStreamÓëFileOutputStreamÀàÓöÁ¡¢Ð´×Ö½ÚÁ÷¡£ B) ReaderÓëWriterÀàÓÃÀ´¶Á¡¢Ð´×Ö·ûÁ÷¡£

C) RandomAccessFile¼È¿ÉÒÔÓÃÀ´¶ÁÎļþ£¬Ò²¿ÉÒÔÓÃÀ´Ð´Îļþ¡£ D) FileÀàÓÃÀ´´¦ÀíÓëÎļþÏà¹ØµÄ²Ù×÷¡£ 5¡¢ÏÂÃæ˵·¨ÕýÈ·µÄÊÇ( )¡£

A)Èç¹ûij¹«¹²½Ó¿Ú±»ÉùÃ÷ÔÚÒ»¸öÔ´ÎļþÖУ¬Ôò½Ó¿Ú±ØÐëÓëÔ´Îļþ¾ßÓÐÏàͬÃû×Ö¡£ B)Èç¹ûÔ´Îļþ°üº¬importÓï¾ä£¬Ôò¸ÃÓï¾ä±ØÐëÊdzý¿ÕÐкÍ×¢ÊÍÐÐÍâµÄµÚÒ»¸öÓï¾äÐС£ C)Èç¹ûijԴÎļþ°üº¬packageÓï¾ä£¬Ôò¸ÃÓï¾ä±ØÐëÊǵÚÒ»¸ö·Ç¿Õ¡¢·Ç×¢ÊÍÐС£

D)½Ó¿ÚÖеķ½·¨±Ø¶¨ÊdzéÏó·½·¨£¬µ«¿ÉÒÔ²»Óùؼü×ÖabstractÐÞÊΡ£ 6¡¢ÏÂÃæ¹ØÓÚJavaÖÐÒì³£´¦Àítry¿éµÄ˵·¨ÕýÈ·µÄÊÇ( )?

A) try¿éºóͨ³£Ó¦ÓÐÒ»¸öcatch ¿é£¬ÓÃÀ´´¦Àítry¿éÖÐÅ׳öµÄÒì³£¡£ B) catch ¿éºó±ØÐëÓÐfinally¿é¡£

C)¿ÉÄÜÅ׳öÒì³£µÄ·½·¨µ÷ÓÃÓ¦·ÅÔÚtry¿éÖС£ D)¶ÔÅ׳öµÄÒì³£µÄ´¦Àí±ØÐë·ÅÔÚtry¿éÖÐ

7¡¢ÏÂÃæ¹ØÓÚ½ø³Ì¡¢Ï̵߳Ä˵·¨ÕýÈ·µÄÊÇ( )¡£

A)½ø³ÌÊdzÌÐòµÄÒ»´Î¶¯Ì¬Ö´Ðйý³Ì¡£Ò»¸ö½ø³ÌÔÚÆäÖ´Ðйý³ÌÖУ¬¿ÉÒÔ²úÉú¶à¸öÏ̡߳ª¡ª¶àỊ̈߳¬ÐγɶàÌõÖ´ÐÐÏßË÷¡£

B)Ïß³ÌÊDZȽø³Ì¸üСµÄÖ´Ðе¥Î»£¬ÊÇÔÚÒ»¸ö½ø³ÌÖжÀÁ¢µÄ¿ØÖÆÁ÷£¬¼´³ÌÐòÄÚ²¿µÄ¿ØÖÆÁ÷¡£Ï̱߳¾Éí²»ÄÜ×Ô¶¯ÔËÐУ¬ÆÜÉíÓÚij¸ö½ø³ÌÖ®ÖУ¬Óɽø³ÌÆô¶¯Ö´ÐС£ C)Java¶àÏ̵߳ÄÔËÐÐÓëƽ̨Ïà¹Ø¡£

D)¶ÔÓÚµ¥´¦ÀíÆ÷ϵͳ£¬¶à¸öÏ̷߳Öʱ¼äƬ»ñÈ¡CPU»òÆäËûϵͳ×ÊÔ´À´ÔËÐС£¶ÔÓڶദÀíÆ÷ϵͳ£¬Ï߳̿ÉÒÔ·ÖÅäµ½¶à¸ö´¦ÀíÆ÷ÖУ¬´Ó¶øÕæÕýµÄ²¢·¢Ö´ÐжàÈÎÎñ¡£ 8¡¢¹ØÓÚBufferedReaderÀàµÄreadLine()·½·¨£¬ÒÔÏÂ˵·¨ÕýÈ·µÄÊÇ£¨£©¡£ A)·½·¨readLine()ÿ´Î¶ÁÈ¡Ò»ÐÐÊý¾Ý¡£ B)·½·¨readLine()ÿ´Î¶ÁÈ¡Ò»¸ö×Ö½Ú¡£

C)¸Ã·½·¨¿ÉÄÜÅ׳öIOExceptionÒì³££¬µ÷Óø÷½·¨Ê±Í¨³£Ó¦½«Ëü·Åµ½try¿éÖУ¬²¢Í¨¹ýcatch¿é´¦ÀíÒì³£¡£

D)Èç¹û¶Áµ½Á÷µÄĩ⣬¸Ã·½·¨·µ»ØµÄ½á¹ûΪnull¡£ Èý¡¢³ÌÐòÔĶÁÌâ

1¡¢ÔĶÁÏÂÃæµÄ³ÌÐò£¬»Ø´ðÎÊÌâ(?ÎÊ3·Ö£¬?ÎÊ3·Ö£¬¹²6·Ö)¡£

import java.awt.*;

import javax.swing.*;

public class T extends JFrame { public T ( ) {

super(\

Container con=this.getContentPane(); con.setLayout(new GridLayout(2,3)); con.add(new JButton(\ con.add(new JButton(\ con.add(new JButton(\ con.add(new JButton(\ con.add(new JButton(\ con.add(new JButton(\ setSize(200, 80); setVisible(true); }

public static void main(String args[]) { new T(); }

}

?»­Í¼±íʾ³ÌÐòÔËÐкóµÄͼÐνçÃæ¡£

?Èç¹û³ÌÐòͨ¹ýʵÏÖij¸ö½Ó¿Ú´¦Àí°´Å¥µÄ¶¯×÷ʼþ£¬Ôò¸Ã½Ó¿ÚÃûΪºÎ£¿½Ó¿ÚÖеķ½·¨Í·ÉùÃ÷ÈçºÎ£¿ ´ð°¸£º ?