网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

在J2EE中,URL类代表了统一资源定位器,如果要使用 “http://www.sina.com.cn/index.html”生成URL对象,可以按照如下的()造该对象。 

  • A、URL url=new URL("http","www.sina.com.cn/index.html",80);
  • B、URL url=new URL("http://www.sina.com.cn/index.html");
  • C、URL url=new URL("http","www.sina.com.cn",80,"index.html");
  • D、Url url=new URL("http","www.sina.com.cn/index.html");

参考答案

更多 “在J2EE中,URL类代表了统一资源定位器,如果要使用 “http://www.sina.com.cn/index.html”生成URL对象,可以按照如下的()造该对象。 A、URL url=new URL("http","www.sina.com.cn/index.html",80);B、URL url=new URL("http://www.sina.com.cn/index.html");C、URL url=new URL("http","www.sina.com.cn",80,"index.html");D、Url url=new URL("http","www.sina.com.cn/index.html");” 相关考题
考题 在J2EE中,URL类代表了统一资源定位器,如果要使用“http://www.sina.com.cn/index.html”生成URL对象,可以按照如下的()造该对象。 A.URLurl=newURL(http,www.sina.com.cn/index.html,80);B.URLurl=newURL(http://www.sina.com.cn/index.html);C.URLurl=newURL(http,www.sina.com.cn,80,index.html);D.Urlurl=newURL(http,www.sina.com.cn/index.html);

考题 以下URL地址写法正确的是()。A.http:/www.jnhzhrcn/index.htmlB.http://www.jnhzhr.cn/index.htmlC.http//wwwjnhzhrcn/index.htmlD.http//www.jnhzhr.cn/index.html

考题 下列URL的表示方法中,正确的是( )。A.http://www,microsofi,com/index.htmlB.http:\\www.microsoft.com/index.htmlC.http://www.microsoft.com\index.htmlD.http//www,microsofi.com/index.html

考题 CSS中URL单位的书写方式是()。 A. url{URL}B. url[URL]C. url{URL}D. url(URL)

考题 下面有关将物件链接到URL上的描述正确的是:() A.前置词http://必须放在URL地址之后,以确保链接正确B.Image Map限定了链接选定的URL的按钮的形状C.URL选项中显示的URL项日数是没有限制的D.在Adobe lllustrator9.0中所建立的所有物件都可以链接到Uniform Resource Locator(URL)上

考题 以下URL中写法正确的是______。A.http://WWW.microsoft.com\index\htmlB.http://WWW.microsoft.com/index/htmlC.http://WWW.microsoft.com\index.htmlD.http://WWW.microsoft.com/index.html

考题 URL consists of three parts: the protocol(75), the DNS name of the host (www.csai.cn) and the file name (index.html).A.IPB.UDPC.TCPD.HTTP

考题 请完成下列Java程序:读取新浪首页文件的数据并且显示出来。要求编写JFrame扩展类,以String类的对象定义的url地址作为入口参数,该类实现根据url参数指定的地址进行连接和读取数据,并且能显示在1个文本区域内。注意:请勿改动main()主方法和其他已有语句内容,仅在下划线处填入适当的语句。程序运行结果如下:import javax.swing.*;import java.awt.*;import java.awt.event.*;import java.net.*;import java.io.*;public class ex25_2 {public static void main(String[] arg) {UrlFrame. page = new UrlFrame("http://www.sina.com.cn");page.show();}}class UrlFrame. extends JFrame. {JTextArea jta = new JmextArea("正在读取文件…");URL url;public UrlFrame(String strAddr) {super (strAddr); //使用父类的构造方法。setSize(450, 300);JScrollPane jsp = new JScrollPane(jta);getContentPane().add(jsp);WindowListener wl = new WindowAdapter() {public void windowClosing(WindowEvent we) {System.exit(0);}};addWindowListener(wl);try {url = new URL(strAddr);____________________;} catch (MalformedURLException murle) {System.out.println("不合适的URL: "+ strAddr);}}void getData(URL url) {URLConnection con = null;InputStreamReader isr;BufferedReader readBuf;String strLine;StringBuffer strBuf = new StringBuffer();try {con = this.url.openConnection();con.connect();jta.setText("打开连接...");isr = new InputStreamReader(con.getInputStream( ));readBuf = new BufferedReader(isr);jta.setText("读取数据...");while ((strLine = readBuf.readLine()) != null)strBuf.append(strLine + "\n");_____________________________;} catch (IOException e) {System.out.println("IO 错误:" + e.getMessage());}}}

考题 URL为http:// www.tsinghua.edu.cn/index.html时,其中的http表示() 。A.域名 B.所使用的协议 C.访问的主机 D.请求查看的文档名

考题 http://www.seo.com统计的某URL,URL的统一性?

考题 合理的URL规则能使网站对于搜索引擎更加友好,请问以下哪项URL是合理的URL?()A、http://www.xxx.com:80/abc/B、http://www.xxx.com/abc//C、http://126.156.58.6/a/b/cD、http://www.xxx.com/abc

考题 HTTP和URL分别是什么?URL是如何构成的?

考题 HTTP请求消息的请求行包括()。A、状态码字段、URL字段和HTTP版本字段B、方法字段、URL字段和状态码字段C、方法字段、状态码字段和HTTP版本字段D、方法字段、URL字段和HTTP版本字段

考题 在以下URL中,从形式上看正确的是()。A、http://www.sina.com.cn/history/1998/intro.aspB、http://www.sina.com.cn/news/1.jpgC、ftp://ftp.sina.com.cn/history/1998/intro.aspD、ftp://ftp.sina.com.cn/news/1.jpg

考题 AutoCAD软件可以通过输入URL从Internet上打开图形文件,输入格式为()。A、http://[url]www.autodesk.com/samplE.dwg[/url]B、[url]www.autodesk.com/samplE.dwg[/url]C、telnet://[url]www.autodesk.com/samplE.dwg[/url]D、http:[url]www.autodesk.com/samplE.dwg[/url]

考题 下列选项中,能够在网页浏览器中访问到新浪主页URL地址是()。A、ftp://www.sina.com.cnB、http://www.sina.com.cnC、http://www@sina.com.cnD、web://www.sina.com.cn

考题 以下URL中写法正确的是()A、http://WWW.microsoft.com/index.htmlB、http//WWW.microsoft.com/index.htmlC、http://WWW.microsoft.com/index.htmlD、http//WWW.microsoft.com/index.html

考题 下面有关将物件链接到URL上的描述正确的是:()A、前置词http://必须放在URL地址之后,以确保链接正确B、ImageMap(Attributes控制板上)限定了链接选定的URL的按钮的形状C、URL选项中显示的URL项目数是没有限制的D、在AdobeIllustratorCS2中所建立的所有物件都可以链接到UniformResourceLocator(URL)上

考题 网易的主页地址为“http://www.163.com/index.html”,这个URL地址属于()

考题 “http://www.tsinghua.edu.cn/index.html”是清华大学Web站点的URL,其描述的访问方法是()。

考题 如何在新窗口打开链接?()A、a href="url" new  B、a href="url" target="_blank"  C、a href="url" target="new"  D、a href="url" target="_parent"

考题 以下URL地址写法正确的是()A、http:/www.sinacom/index.htmlB、http://www.sina.com/index.htmlC、http//wwwsinacom/index.htmlD、http//www.sina.com/index.html

考题 单选题HTTP请求消息的请求行包括()。A 状态码字段、URL字段和HTTP版本字段B 方法字段、URL字段和状态码字段C 方法字段、状态码字段和HTTP版本字段D 方法字段、URL字段和HTTP版本字段

考题 填空题“http://www.tsinghua.edu.cn/index.html”是清华大学Web站点的URL,其描述的访问方法是()。

考题 问答题HTTP和URL分别是什么?URL是如何构成的?

考题 填空题网易的主页地址为“http://www.163.com/index.html”,这个URL地址属于()

考题 多选题在J2EE中,URL类代表了统一资源定位器,如果要使用 “http://www.sina.com.cn/index.html”生成URL对象,可以按照如下的()造该对象。AURL url=new URL(http,www.sina.com.cn/index.html,80);BURL url=new URL(http://www.sina.com.cn/index.html);CURL url=new URL(http,www.sina.com.cn,80,index.html);DUrl url=new URL(http,www.sina.com.cn/index.html);