题目内容

下面有关获取InetAddress对象的方法中,错误的是( )

A. InetAddress.getlByName("www.baidu.com")
B. InetAddress.getlByName("14.215.177.39”)
C. InetAddress.getLocalHost("www.baidu.com")
D. InetAddress.getLocalHost()

查看答案
更多问题

网络通信中存在许多通信协议,其中____协议是一种基于连接的协议。

6.1 JComboBox类中添加列表选项的方法是( )

A. removeItem(Object anObject)
B. addItem(Object anObject)
C. getItemAt(int index)
D. setSelectedItem(Object anObject)

6.2 JList类中获取所选项的内容的方法是( )

A. getSelectedIndex()
B. getSelectedValue()
C. getSelectedIndices()
D. setSelectionMode(int selectionMode)

6.3 JTable类中获取单元格的值的方法是( )

A. getColumn(Object identifier)
B. getColumnModel()
C. getColumnName(int column)
D. getValueAt(int rowIndex, int columnIndex)

答案查题题库