搜狐畅游2018校招笔试题-游戏开发工程师(java)
时长:120分钟 总分:150分
103浏览 0人已完成答题
题型介绍
题型 | 单选题 | 填空题 | 简答题 |
---|---|---|---|
数量 | 45 | 1 | 2 |
给定如下Java代码,编译运行的结果是() LinkedList l...
LinkedList list=new LinkedList()
list.add("A")
list.add(0,"B")
String s=(String)list.get(1)
System.out.println(s)
下列JavaScript代码的输出结果() var foo = "11"+...
var foo = "11"+2-"1"
console.log(foo)
与document.getElementById("myHeader")具...
以下程序的运行结果为 ( )public class Example e...
public class Test extends Thread {
@Override
public void run() {
try {
Thread.sleep(1000)
} catch (InterruptedException e) {
e.printStackTrace()
}
System.out.print("run")
}
public static void main(String[] args) {
Test example = new Test()
example.run()
System.out.print("main")
}
}
以下程序的运行结果为 ( )public class HelloChang...
public class HelloChangyou {
public static synchronized void main(String[] args) {
Thread t = new Thread() {
public void run() {
changyou()
}
}
t.run()
System.out.print("Hello")
}
static synchronized void changyou() {
System.out.print("ChangYou")
}
}
下面代码中,在if处填写什么代码,可以使得输出结果为:changyou ?...
if ( ){ //填写条件
System.out.print("chang")
} else {
System.out.print("you")
}
}
以下代码会输出什么结果Integer[] arr = new Intege...
Integer[] arr = new Integer[2]
int count = 0
for(Integer i : arr)
i = count++
for(Integer i : arr)
System.out.println(i)