[单项选择题] 通过Applet的 ( ) 方法,可以得到Applet类文档的URL。
2021-07-14
[单项选择题] 通过Applet的 ( ) 方法,可以得到Applet类文档的URL。
A.getCodeBase ()
B.getHost ()
C.getByName ()
D.getDocumentBase ()
正确答案:A
参考解析:getCodeBase ()方法返回.class所在的网址URL。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
