You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
以下程序运行的结果为 ( ) public class Example 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){ Example example= new Example(); example.run(); System. out .print( "main" ); } }
#45
以下程序运行的结果为 ( ) public class Example 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){ Example example= new Example(); example.run(); System. out .print( "main" ); } }(2分)
A. run main
B. main run
C. main
D. run
E. 不能确定
你的回答B 是错误的。估计他是想考线程执行的不确定性吧,估计是E
The text was updated successfully, but these errors were encountered:
以下程序运行的结果为 ( ) public class Example 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){ Example example= new Example(); example.run(); System. out .print( "main" ); } }(2分)
A. run main
B. main run
C. main
D. run
E. 不能确定
你的回答B 是错误的。估计他是想考线程执行的不确定性吧,估计是E
The text was updated successfully, but these errors were encountered: