在使用DatagramPacket对象,要使用同一个构造方法创建发送端和接收端。
查看答案
在TCP程序中,ServerSocket类的实例对象可以实现一个服务器端的程序。
A. 对
B. 错
以下属于DatagramPacket类中的常用方法的有()。
A. getAddress();
B. getPort();
C. getData();
D. getLength()。
以下哪些属于InetAddress类的一些常用方法()。
A. getByName(String host);
B. getLocalHost() ;
C. getHostName();
D. getHostAddress()。
1.2Replace the underlined part in each of the following sentences with a word or phrase from the box below. Write your answer in the brackets. Make changes or additions where necessary.enable , dwarf, on track, and so forth, around the corner1. You see the lights in the students' reading room? They never go out at night these days because the final exams are drawing near. ( )2. At that time the working class was still too small to makea successful revolution there. ()3.The high-rise building in the back makes our old house seem small. ()4.The figures show that our economy is healthy and we are likely to achieve sustainable and balanced (平衡的) growth. ( )5.The two girls spent the whole night planning the summer events, get-togethers, dinner parties, and many other things of the kind. ()