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

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

Given classes defined in two different files:1.package util;2.public class BitUtils{3.private static void process(byte[]b){}4.}1.package app;2.public class SomeApp{3.public static void main(String[]args){4.byte[]bytes=newbyte[256];5.//insert code here6.}7.}What is required at line 5 in class SomeApp to use the process method of BitUtils?()

A.process(bytes);

B.BitUtils.process(bytes);

C.app.BitUtils.process(bytes);

D.util.BitUtils.process(bytes);

E.importutil.BitUtils.*;process(bytes);

F.SomeApp cannot use the process method in BitUtils.


参考答案

更多 “ Given classes defined in two different files:1.package util;2.public class BitUtils{3.private static void process(byte[]b){}4.}1.package app;2.public class SomeApp{3.public static void main(String[]args){4.byte[]bytes=newbyte[256];5.//insert code here6.}7.}What is required at line 5 in class SomeApp to use the process method of BitUtils?()A.process(bytes);B.BitUtils.process(bytes);C.app.BitUtils.process(bytes);D.util.BitUtils.process(bytes);E.importutil.BitUtils.*;process(bytes);F.SomeApp cannot use the process method in BitUtils. ” 相关考题
考题 假设在helloapp应用中有一个Javabean文件HelloServlet,它位于org.javathinker包下,那么这个bean的class文件应该放在什么目录下? ( )A.helloapp/HelloServlet.classB.helloapp/WEB-INF/HelloServlet.classC.helloapp/WEB-INF/classes/HelloServlet.classD.helloapp/WEB-INF/classes/org/javathinker/HelloServlet.class

考题 Given:11.%java.util.Mapmap=newjava.util.HashMap();12.request.setAttribute(map%java.util.Mapmap=newjava.util.HashMap();12.request.setAttribute(map,map);13.map.put(a,b);14.map.put(b,c);15.map.put(c,d);%16.%--insertcodehere--%WhichthreeELexpressions,insertedatline16,arevalidandevaluatetod?()A.${map.c}B.${map[c]}C.${map[c]}D.${map.map.b}E.${map[map.b]}

考题 Givenclassesdefinedintwodifferentfiles:1.packageutil;2.publicclassBitUtils{3.publicstaticvoidprocess(byte[]){/*morecodehere*/}4.}1.packageapp;2.publicclassSomeApp{3.publicstaticvoidmain(String[]args){4.byte[]bytes=newbyte[256];5.//insertcodehere6.}7.}Whatisrequiredatline5inclassSomeApptousetheprocessmethodofBitUtils?()A.process(bytes);B.BitUtils.process(bytes);C.util.BitUtils.process(bytes);D.SomeAppcannotusemethodsinBitUtils.E.importutil.BitUtils.*;process(bytes);

考题 Given classes defined in two different files:What is required at line 5 in class SomeApp to use the process method of BitUtils?() A.process(bytes);B.BitUtils.process(bytes);C.app.BitUtils.process(bytes);D.util.BitUtils.process(bytes);E.import util.BitUtils.*; process(bytes);F.SomeApp cannot use the process method in BitUtils.

考题 Given:AprogrammerisdevelopingaclassKey,thatwillbeusedasakeyinastandardjava.util.HashMap.WhichtwomethodsshouldbeoverriddentoassurethatKeyworkscorrectlyasakey?() A.publicinthashCode()B.publicbooleanequals(Keyk)C.publicintcompareTo(Objecto)D.publicbooleanequals(Objecto)E.publicbooleancompareTo(Keyk)

考题 下列哪种方式是用class选择器定义样式的A.p{color: red}B.p,h1{color: red}C.. one{color: red}D.#two{color: red}

考题 假设在stu应用中有一个LoginServlet类,它位于cn.dot包中,在Tomcat服务器中这个类的.class文件的存放路径是哪个选项()?A.stu/webapps/LoginServlet.classB.stu/WEB-INF/LoginServlet.classC.stu/WEB-INF/classes/dot/LoginServlet.classD.stu/WEB-INF/classes/cn/dot/LoginServlet.class

考题 在下面哪个web应用目录中可以放置所需要的class文件?()A./WEB-INF/libB./META-INF/libC./classes 放置已经编译的类文件D./WEB-INF/classes

考题 在Tomcat中,class文件保存在web-INF/classes目录下。