单选题一个InetAddress的对象含有()A主机的域名B主机的IP地址C访问主机的通讯协议D主机的域名和IP地址
单选题
一个InetAddress的对象含有()
A
主机的域名
B
主机的IP地址
C
访问主机的通讯协议
D
主机的域名和IP地址
参考解析
解析:
暂无解析
相关考题:
下列Applet用于显示提供它的主机的IP地址。请选择正确的语句填入横线处。 import java.awt.*; import java. awt. event.*; import java.applet.Applet; import java.net. *; public class ex23 extends Applet { public void init() { setLayout(new GridLayout(2, 1); Button btm = new Button("显示IP"); final Label 1 = new Label(" "); btn. addActionListener (new ActionListener ( ) { public void actionPerformed(ActionEvent ae) { try { URL ur1 = getCodeBase(); String strName = ur1.getHost(); ______ 1.setText (ia.toString()); } catch (Exception e) { e.printStackTrace (); } } }); add (btn); } }A.InetAddress ia = URL.getByName(strName);B.InetAddress ia = InetAddress.getByName(strName);C.InetAddress ia = new InetAddress.getByName(strName);D.InetAddress ia = InetAddress.getByName(ur1);
下列关于InetAddress类的getHostName()方法的返回值的说法中,错误的是() A.如果创建的InetAddress对象是用主机名创建的,则将该主机名返回B.如果不是使用主机名创建的InetAddress对象,则将根据IP地址反向查找对应的主机名,找到则返回主机名C.该方法用于返回某个IP 地址的主机名D.如果不是使用主机名创建的InetAddress对象,则将根据IP地址反向查找对应的主机名,找不到则返回null
InetAddress类中能获取IP地址及主机名的方法是() A.getHostName()B.getLocalHost()C.getHostAddress()D.getAddress ()
如果想获得本地机的地址,可调用类InetAddress中的静态方法得到一个InetAddress对象,该对象含有本地机的地址,此静态方法()A、getHost()B、getName()C、getLocalHost()D、getLocalName()
下列哪个语句是声明了一个含有10个string对象的数组()。A、char str[];B、char str[][];C、string str[]=newstring[10];D、string str[10];
You accidentally configured interface so-0/0/0.0 with /32 instead of /30. Which two solutions could you use to correct this configuration?()A、[edit interfaces so-0/0/0.0] user@router# replace family inetaddress /32 with /30B、[edit interfaces so-0/0/0.0] user@router# rename family inetaddress /32 to address /30C、[edit] user@router# replace interface so-0/0/0.0 family inetaddress /32 with address /30D、[edit interfaces so-0/0/0.0] user@router# delete family inet address user@router# set family inetaddress /30
多选题You accidentally configured interface so-0/0/0.0 with /32 instead of /30. Which two solutions could you use to correct this configuration?()A[edit interfaces so-0/0/0.0] user@router# replace family inetaddress /32 with /30B[edit interfaces so-0/0/0.0] user@router# rename family inetaddress /32 to address /30C[edit] user@router# replace interface so-0/0/0.0 family inetaddress /32 with address /30D[edit interfaces so-0/0/0.0] user@router# delete family inet address user@router# set family inetaddress /30
单选题下列哪个语句是声明了一个含有10个string对象的数组()。Achar str[];Bchar str[][];Cstring str[]=newstring[10];Dstring str[10];
填空题当一个派生类中含有子对象时,该派生类的析构函数中应包含()的析构函数、子对象类的()和()的析构函数。