正在加载图片...
B C. Socket D DatagramPacket 下面哪两个是等价的? A.3/2 B.3<2 D.3<<2 E.3*2A2 F.3 下面的表达式哪个是正确的? A String s="你好"inti=3;s+=i B String s="你好"inti3;fi==s){S+= C String s="你好"intj=3;s=i+s; D String s="你好"inti=3;S=i+; E String s=null; int i=(s =null)&&(s length>O)?s length: 0 17、选出合理的标识符 Asys1Ⅲ b mail C Schange d class 18 哪个布局管理器使用的是组件的最佳尺寸( preferred size) a FlowLayout b borderlayout c Grid Layout D CardLayout E GridBagLayout 下列哪个方法可用于创建一个可运行的类? a public class X implements Runable public void run((..31 B public class X implements Thread public void run(....3] c public class X implements Thread( public int run(..31 D public class X implements Runable protected void runo..y E public class X extends Thread public void run((..31 20、下面哪个方法可以在任何时候被任何线程调用? B waitO c notify Allo D sleep F synchronized(this) 构造 BufferedInputstream的合适参数是哪个? b Bufferedoutputstre c FileInputStream D FileOuter StreamB. Server C. Socket D. DatagramPacket E. DatagramSocket 15、 下面哪两个是等价的? A. 3/2 B. 3<2 C. 3*4 D. 3<<2 E. 3*2^2 F. 3<<<2 16、 下面的表达式哪个是正确的? A String s="你好";int i=3; s+=i; B String s="你好";int i=3; if(i==s){ s+=i}; C String s="你好";int i=3; s=i+s; D String s="你好";int i=3; s=i+; E String s=null; int i=(s!=null)&&(s.length>0)?s.length():0; 17、 选出合理的标识符 A _sys1_lll B 2mail C $change D class 18、 哪个布局管理器使用的是组件的最佳尺寸( preferred size) A FlowLayout B BorderLayout C GridLayout D CardLayout E GridBagLayout 19、 下列哪个方法可用于创建一个可运行的类? A public class X implements Runable{ public void run(){ ......} } B public class X implements Thread{ public void run(){ ......} } C public class X implements Thread{ public int run(){ ......} } D public class X implements Runable{ protected void run(){ ......} } E public class X extends Thread{ public void run(){ ......} } 20、 下面哪个方法可以在任何时候被任何线程调用? A notify() B wait() C notifyAll() D sleep() E yield() F synchronized(this) 21、 构造BufferedInputStream的合适参数是哪个? A BufferedInputStream B BufferedOutputStream C FileInputStream D FileOuterStream
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有