给出下列JAVA程序执行结果:   &nbs...
发布于 2022-03-03 13:57:16
给出下列JAVA程序执行结果:
public static void main(String args[]) {
Thread t = new Thread() {
public void run() {
pong()
}
}
t.run()
System.out.print("ping")
}
static void pong() {
System.out.print("pong")
}
public static void main(String args[]) {
Thread t = new Thread() {
public void run() {
pong()
}
}
t.run()
System.out.print("ping")
}
static void pong() {
System.out.print("pong")
}
登录后免费查看答案
关注者
0
被浏览
51