下列代码运行的结果是:()&nbsp &nbsp &nbsp &nb...
发布于 2022-03-03 15:13:01
下列代码运行的结果是:()
public class Starter extends Thread{ private int x=2 public static void main(String[] args)throws Exception{ new Starter().makrltSo() } public Starter(){ x=5 start() } public void makeltSo()throws Exception{ join() x=x-1 System.out.println(x) } public void run(){ x*=2 } }
登录后免费查看答案
关注者
0
被浏览
23