正在加载图片...
9、下面关于阻塞方法的论述,正确的有? A阻塞方法是指无法返回的方法 B阻塞方法是指网络过于繁忙,方法必须等待 C阻塞方法是指有外部事件发生才会返回的方法。 D阻塞方法如果不能马上返回,就会进入等待状态,把系统资源让给其他线程 10、下面正确的论述有? A ServerSocket accept是阻塞的 B Buffered Reader readline是阻塞的 C DatagramSocket receive是阻塞的 D Datagram Socket send是阻塞的 11、给定下列代码 public class Parent I blic int add Value( int a, int b)t s= a+b: return s: class Child extends Parent 下列哪些方法可以作为Chd类的方法 A int add Value( int a, int b )l do something.] B. public void addvalue o/ do something.] C public int addValue( int a ]/ do something. D. public int add Value( int a, int b )throws MyException (//do something.3 下面的哪些程序片断可能导致错误? A String s="Gone with the wind", String t=good", String k=s+t B String s= "Gone with the wind String t=s[3]+one C. String s="Gone with the wind String standard =s. toUpperCaseo String s= home directory String t=s-directory 13、下列哪些接口在Java中没有定义相对应的 Adapter类? A. MouseListener B. KeyListener C. Actionlistener D. ItemListene E. Window Listener 那些类可以用来实现TCP/P客户服务器程序? A ServerSocket9、下面关于阻塞方法的论述,正确的有? A 阻塞方法是指无法返回的方法 B 阻塞方法是指网络过于繁忙,方法必须等待 C 阻塞方法是指有外部事件发生才会返回的方法。 D 阻塞方法如果不能马上返回,就会进入等待状态,把系统资源让给其他线程 10、 下面正确的论述有? A ServerSocket.accept是阻塞的 B BufferedReader.readLine是阻塞的 C DatagramSocket.receive是阻塞的 D DatagramSocket.send是阻塞的 11、 给定下列代码: public class Parent { public int addValue( int a, int b) { int s; s = a+b; return s; } } class Child extends Parent { } 下列哪些方法可以作为 Child 类的方法? A. int addValue( int a, int b ){// do something...} B. public void addValue (){// do something...} C. public int addValue( int a ){// do something...} D. public int addValue( int a, int b )throws MyException {//do something...} 12、 下面的哪些程序片断可能导致错误? A. String s = "Gone with the wind"; String t = " good "; String k = s + t; B. String s = "Gone with the wind"; String t; t = s[3] + "one"; C. String s = "Gone with the wind"; String standard = s.toUpperCase(); D. String s = "home directory"; String t = s - "directory"; 13、 下列哪些接口在Java中没有定义相对应的Adapter类? A. MouseListener B. KeyListener C. ActionListener D. ItemListener E. WindowListener 14、 那些类可以用来实现TCP/IP客户服务器程序? A. ServerSocket
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有