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

int max=x[0];

for(int i=1;i max) } max);

12¡¢³ÌÐòTest.java±àÒëÔËÐкóÊä³öµÄ½á¹ûÊÇ( )¡£

public class Test { String s1=\

public static void main(String args[]) { int z=2;

Test t=new Test(); } }

13¡¢Ó¦ÓóÌÐòµÄmain·½·¨ÖÐÓÐÒÔÏÂÓï¾ä£¬ÔòÊä³öµÄ½á¹ûÊÇ ( )¡£

String s1=\

double x=Double.parseDouble(s1); int y=Integer.parseInt(s2);

x+y);

max =x[i];

A) 125 B) 5 C) 98 D) 168

A) java2 B)2 C)ûÓÐÊä³ö½á¹û D)java

A) 12.5 B) 120.5 C) 12 D) ¡°12.5¡± 14¡¢ÏÂÃæµÄ³ÌÐò´´½¨ÁËÒ»¸öÎļþÊä³öÁ÷¶ÔÏó£¬ÓÃÀ´ÏòÎļþtest.txtÖÐÊä³öÊý¾Ý£¬¼ÙÉè³ÌÐòµ±Ç°Ä¿Â¼Ï²»´æÔÚÎļþtest.txt£¬±àÒëÏÂÃæµÄ³ÌÐòTest.javaºó£¬½«¸Ã³ÌÐòÔËÐÐ3´Î£¬ÔòÎļþtest.txt µÄÄÚÈÝÊÇ( )¡£

import java.io.*; public class Test {

public static void main(String args[]) {

try {

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

file.write(b); file.close();

file=new

FileOutputStream(\

} }

¶þ¡¢¶àÑ¡Ìâ

}

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Óï¾ä£¬Ôò¸ÃÓï¾ä±ØÐëÊǵÚÒ»¸ö·Ç¿Õ¡¢·Ç×¢ÊÍÐС£ 6¡¢ÏÂÃæ¹ØÓÚJavaÖÐÒì³£´¦Àítry¿éµÄ˵·¨ÕýÈ·µÄÊÇ( )?

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

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

D)½Ó¿ÚÖеķ½·¨±Ø¶¨ÊdzéÏó·½·¨£¬µ«¿ÉÒÔ²»Óùؼü×ÖabstractÐÞÊΡ£

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¸ö½Ó¿Ú´¦Àí°´Å¥µÄ¶¯×÷ʼþ£¬Ôò¸Ã½Ó¿ÚÃûΪºÎ£¿½Ó¿ÚÖеķ½·¨Í·ÉùÃ÷ÈçºÎ£¿ ´ð°¸£º ?

? ½Ó¿ÚÃû£ºActionListener

½Ó¿ÚÖеķ½·¨£ºpublic void actionPerformed(ActionEvent e) 2¡¢ÔĶÁÏÂÃæµÄ³ÌÐò£¬²¢»Ø´ðÎÊÌâ(?ÎÊ3·Ö£¬?ÎÊ3·Ö£¬¹²6·Ö)¡£ import java.io.*; public class Test {

public static void main(String args[]) throws IOException { BufferedReader buf=new BufferedReader(

new InputStreamReader(System.in)); while(true) {

String str=buf.readLine(); if(str.equals(\ break;

int x=Integer.parseInt(str); } } }

±àÒëÔËÐÐÉÏÃæµÄ³ÌÐò£º

?´Ó¼üÅÌÊäÈë5£¬»Ø³µºóÊä³öµÄ½á¹ûÈçºÎ£¿ ?´Ó¼üÅÌÊäÈëquit£¬»Ø³µºó³ÌÐòÖ´ÐÐÇé¿öÈçºÎ£¿ ´ð°¸£º ?25

?ÖÕÖ¹Ó¦ÓóÌÐòµÄÔËÐС£

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ì滻Ϊ@)