A.URLurl=newURL("file://java.sun.com")
B.URLurl=newURL("http://java.sun.com")
C.URLurl1=newURL("http://java.sun.com")
D.URLurl2=newURL(url1,null)
E.URLurl1=newURL(null,"http://java.sun.com")
第1题
下列选项中是正确的URL构造函数的是?
A、publicURL(Stringspec)
B、publicURL(URLcontext,Stringspec)
C、publicURL(Stringprotocol,Stringhost,Stringfile)
D、publicURL(Stringprotocol,Stringhost,,intport,Stringfile)
第4题
下列属于合法的URL的有?
A、http://www.sina.com.cn
B、ftp:21//ftp.dlut.edu.cn
C、http:\\www.sohu.com\new.html
D、http://www.neca.com/~welcome/java.html
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!