题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下列哪个方法可用于创建一个可运行的类? ( )

A. public class X implements Runable{ public void run(){ ......} }

B. public class X implements Thread{ public void run(){ ......} }

C. public class X implements Thread{ public int run(){ ......} }

D. public class X implements Runable{ protected void run(){ ......} }

学科:CUST0433 Java语言程序设计

时间:2025-08-14 05:25:52

Copyright © 2022 津ICP备2021001502号