在J2EE中,使用Document对象的()方法,可以得到一个N

题目

在J2EE中,使用Document对象的()方法,可以得到一个NodeList对象。 

  • A、getDocumentElement方法
  • B、getElementsByTagName方法
  • C、getElementTagName方法
  • D、getElementById方法
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

在J2EE中,下列选项中,()可以得到URLConnection对象。

A.使用URL对象的openConnection方法

B.使用URLConnection类的静态方法openConnection()方法得到

C.使用URL对象的getConnection()方法得到

D.使用URLConnection类的静态方法getConnection()方法得到


参考答案:A

第2题:

在J2EE中,ServletResponse的()方法可以返回在应答中写入二进制数据的对象,()方法可以返回在应答中发送字符文本的对象。()

A.getOutputStream()和getWriter()方法

B.getWriter()和getOutputStream()方法

C.getInputStream()和getPrint()方法

D.getStream()和getPrint()方法


参考答案:A

第3题:

在J2EE中,在DOM基本对象中,代表文档树中一个抽象的节点和文档中的标签元素的对象分别是()。

A.Document,Node

B.Node,NodeList

C.NodeList,Element

D.Node,Element


参考答案:D

第4题:

在J2EE中,对于以下ServletConfig的描述,正确的是()。

A.一旦servlet被实例化后,包容器把一个ServletConfig类型的对象传送给init()方法

B.可以使用Servlet的getServletConfig()方法返回ServletConfig对象

C.ServletConfig对象的方法getInitParameter(name)返回初始化参数name的值,初始化参数一般定义在web.xml中

D.ServletConfig对象的方法getServletName()方法返回在web.xml中的元素的值


参考答案:A, B, C

第5题:

在J2EE中,使用Document对象的()方法,可以得到一个NodeList对象。

A.getDocumentElement方法

B.getElementsByTagName方法

C.getElementTagName方法

D.getElementById方法


参考答案:B

第6题:

在J2EE中,系列选项中,()可以得到URLCconnection类对象。

A.使用URL对象的openConnection()方法得到

B.使用URLConnection类的静态方法openConnection()方法得到

C.使用URL对象的getConnection()方法得到

D.使用URLConnection类的静态方法getConnection()方法得到


参考答案:A

第7题:

在J2EE中,接受一个XML文档,返回document对象,以分析该XML文档,可以使用如下()方法获得document对象

A.Documentdoc=DocumentBuilderFactory.parse(“my.xml”);

B.Documentdoc=DocumentBuilder.parse(“my.xml”);

C.DocumentBuilderFactorydbf=DocumentBuilderFactory.newInstance();DocumentBuilder builder=dbf.newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);

D.DocumentBuilderbuilder=newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);


参考答案:C

第8题:

在J2EE中,以下关于得到ResultSet对象、PreparedStatement对象、CallableStatement对象的说法,正确的是()。

A.可以使用Statement对象的executeQuery方法返回ResultSet对象

B.可以使用Connection对象的createStatement方法获得PreparedStatement对象

C.可以使用Connection对象的prepareCall()方法获得CallableStatement对象

D.可以使用Connection对象的executeQuery方法返回ResultSet对象


参考答案:A, C

第9题:

在J2EE中,对XML文档进行转换后,将源DOM树中的数据输出到指定目标流的方法是()。

A.DomResult对象的DomResult方法

B.Nodelist对象的toString方法

C.Document对象的addDocumenListener方法

D.Transformer对象的transform方法


参考答案:D

第10题:

在J2EE中,下列选项中,()可以得到URLConnection对象。 

  • A、使用URL对象的openConnection方法
  • B、使用URLConnection类的静态方法openConnection()方法得到
  • C、使用URL对象的getConnection()方法得到
  • D、使用URLConnection类的静态方法getConnection()方法得到

正确答案:A

更多相关问题