爱奇艺2019秋招Java方向笔试题(A)
时长:120分钟 总分:100分
131浏览 0人已完成答题
题型介绍
题型 | 单选题 | 多选题 |
---|---|---|
数量 | 12 | 8 |
设哈希表长为11,哈希函数为Hash (key)=key%11。存在关键码...
广义表K=(m,n,(p,(q,s)),(h,f)),则head[tail...
在一个空的5阶B-树中依次插入关键字序列{6,8,15,16,22,10,...
程序员编写程序时使用文件系统提供的系统调用将内存中由address地址开始...
某软件公司正在升级一套水务管理系统。该系统用于县市级供排水企业、供水厂、排...
以下程序的执行结果是: static boolean foo(...
static boolean foo(char c){ System.out.print(c) return true } public static void main(String[] args) { int i =0 for(foo('A')foo('B')&&(i<2)foo('C')){ i++ foo('D') } }
Gadget has-a Sprocket and Gadget has-...
Sprocket 以下哪两段代码可以表示这个关系? (选择两项) ( )
以下代码可以使用的修饰符是:() public interface Sta...
public interface Status { /*INSERT CODE HERE*/ int MY_VALUE=10 }
执行下列程序的输出结果为( ) p...
public class Test { public static void main(String[] args) { String s1 = "HelloWorld" String s2 = new String("HelloWorld") if (s1 == s2) { System.out.println("s1 == s2") } else { System.out.println("s1 != s2") } if (s1.equals(s2)) { System.out.println("s1 equals s2") } else { System.out.println("s1 not equals s2") } } }
class Alpha {  public void foo()...
class Alpha { public void foo() { System.out.print("Afoo ") } } public class Beta extends Alpha {15. public void foo() { System.out.print("Bfoo ") } public static void main(String[] args) { Alpha a = new Beta() Beta b = (Beta)a a.foo() b.foo() } }以上代码的执行结果是( )
下列代码编译和运行的结果是:() ...
public class Threads4{ public static void main(String[] args){ new Threads4().go() } public void go(){ Runnable r=new Runnable(){ public void run(){ System.out.print("foo") } } Thread t=new Thread(r) t.start() } }
以下程序的执行结果是: static boolean foo(...
static boolean foo(char c){ System.out.print(c) return true } public static void main(String[] args) { int i =0 for(foo('A')foo('B')&&(i<2)foo('C')){ i++ foo('D') } }