有以下程序段,下面正确的选项是 class DemoThread exte...
发布于 2022-03-03 16:55:00
有以下程序段,下面正确的选项是
class DemoThread extends Thread { public static void main(String args[]) { DemoThread threadOne = new DemoThread() DemoThread threadTwo = new DemoThread() threadOne.start() System.out.print("thread one.") threadTwo.start() System.out.print("thread two.") } public void run() { System.out.print("Thread.") } }
登录后免费查看答案
关注者
0
被浏览
5