在ServerSocket(int port)构造方法中port参数的值可以指定为0
举一反三
- 一个服务器进程执行以下代码: ServerSocket serverSocket=new ServerSocket(80); Socket socket=serverSocket.accept(); int port=socket.getPort(); 以下哪些说法正确?( )
- 配置交换机端口的Trunk模式正确的是() A: <;H3C>; int g1/0/1[H3C -GigabitEthernet1/0/1] port trunk permit vlan 10[H3C -GigabitEthernet1/0/1]port link-type trunk B: [H3C] int g1/0/1[H3C -GigabitEthernet1/0/1]port link-type trunk[H3C -GigabitEthernet1/0/1] port trunk permit vlan 10 C: [H3C -GigabitEthernet1/0/1] port link-type trunk permit vlan 10 D: [H3C] int g1/0/1[H3C -GigabitEthernet1/0/1] port trunk permit vlan 10[H3C -GigabitEthernet1/0/1]port link-type trunk
- 将交换机的g1/0/23设置为Trunk模式的命令是( ) A: [H3C]int g1/0/23[H3C-GigabitEthernet1/0/23] port link-mode route[H3C-GigabitEthernet1/0/23] B: [H3C]int g1/0/23[H3C-GigabitEthernet1/0/23] port link-type trunk[H3C-GigabitEthernet1/0/23] C: [H3C]int g1/0/23[H3C-GigabitEthernet1/0/23] port trunk permit vlan all[H3C-GigabitEthernet1/0/23] D: [H3C]int g1/0/23[H3C-GigabitEthernet1/0/23] port link-type route[H3C-GigabitEthernet1/0/23]
- mongoDB启动参数中,哪个是指定配置文件的参数? A: --port B: --logappend C: --logpath D: --config
- 下列华为设备的VLAN添加端口命令,不正确的是: A: port 0/10 B: port Ethernet 10 C: port Ethernet 0/10 D: port Ethernet0/6 to Ethernet 0/9